extra-boolean
Boolean data type has two possible truth values to represent logic.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.2%) to scientific vocabulary
Keywords
Repository
Boolean data type has two possible truth values to represent logic.
Basic Info
- Host: GitHub
- Owner: nodef
- License: mit
- Language: TypeScript
- Default Branch: master
- Homepage: https://www.npmjs.com/package/extra-boolean
- Size: 626 KB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Boolean data type has two possible truth values to represent logic.
📦 Node.js,
🌐 Web,
📜 Files,
📰 Docs.
📘 Wiki.
A boolean data type has two possible truth values, usually represented as
true or false. It is named after George Boole, who first defined an
algebraic system of logic in the mid 19th century (REF). Boolean
functions can be used to perform logical operations in computer programming,
such as in conditional statements, loops, and branching, to compare input values
with a set of rules to determine the output.
This is a collection of common boolean functions. It includes
the basic gates not, and, or, xor; their complements nand, nor,
xnor; and 2 propositional logic (taught in discrete mathematics) gates
imply, eq; and their complements nimply, neq. There is also a
multiplexer, called select, and a true counter, called count. count
can help you make custom gates, such as an alternate concept of xnor
which returns true only if all inputs are the same (standard xnor returns
true if even inputs are true). These gates can handle up to eight inputs.
The parse function is influenced by (boolean) package, and is quite good at
translating string to boolean. It can also handle double negatives, eg.
not inactive. You know the and of 2-inputs, but what of 1-input? What of 0?
And what of the other gates? I answer them here.
This package is available in Node.js and Web formats. To use it on the web,
simply use the extra_boolean global variable after loading with a <script>
tag from the jsDelivr CDN.
Stability: Experimental.
```javascript const xboolean = require('extra-boolean'); // import * as xboolean from "extra-boolean"; // import * as xboolean from "https://unpkg.com/extra-boolean/index.mjs"; (deno)
xboolean.parse('1'); xboolean.parse('not off'); xboolean.parse('truthy'); // → true
xboolean.parse('not true'); xboolean.parse('inactive'); xboolean.parse('disabled'); // → false
xboolean.imply(true, false); // → false
xboolean.eq(false, false); // → true
xboolean.xor(true, true, true); // → true
xboolean.select(1, true, false, true); // → false ^
xboolean.count(true, false, true); // → 2 ^ ^ ```
Index
| Property | Description | | ---- | ---- | | is | Check if a value is boolean. | | parse | Convert a string to boolean. | | | | | not | Check if a boolean is false. | | imply | Check if antecedent ⇒ consequent. | | nimply | Check if antecedent ⇏ consequent. | | eq | Check if antecedent ⇔ consequent. | | neq | Check if antecedent ⇎ consequent. | | | | | and | Check if all booleans are true. | | nand | Check if any boolean is false. | | or | Check if any boolean is true. | | nor | Check if all booleans are false. | | xor | Check if odd number of booleans are true. | | xnor | Check if even number of booleans are true. | | | | | count | Count number of true booleans. | | select | Check if iᵗʰ boolean is true. |
References
Owner
- Name: nodef
- Login: nodef
- Kind: organization
- Website: https://nodef.github.io/
- Repositories: 119
- Profile: https://github.com/nodef
A summary of programs made with Node.js.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Sahu
given-names: Subhajit
orcid: https://orcid.org/0000-0001-5140-6578
title: "nodef/extra-boolean: A collection of common boolean functions"
version: 1.9.0
doi: 10.5281/zenodo.6814879
date-released: 2022-07-10
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Subhajit Sahu | w****7@g****m | 166 |
| George Pickering | 2****c | 1 |
Issues and Pull Requests
Last synced: 5 months ago
All Time
- Total issues: 0
- Total pull requests: 16
- Average time to close issues: N/A
- Average time to close pull requests: 1 day
- Total issue authors: 0
- Total pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 1.44
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 10
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (5)
- geopic (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 39
-
Total downloads:
- npm 7,989 last-month
-
Total dependent packages: 83
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 2,443
- Total maintainers: 1
npmjs.org: extra-boolean
Boolean data type has two possible truth values to represent logic.
- Homepage: https://github.com/nodef/extra-boolean#readme
- License: MIT
-
Latest release: 1.11.1
published 9 months ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/extra-boolean
Boolean data type has two possible truth values to represent logic.<br>
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.4.12
published almost 5 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/neq.min
Checks if antecedent ⇎ consequent (a ⇎ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/eq
Checks if antecedent ⇔ consequent (a ⇔ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/not.min
Checks if value is false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/xnor.min
Checks if even no. of values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/imply
Checks if antecedent ⇒ consequent (a ⇒ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/or.min
Checks if any value is true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nimply
Checks if antecedent ⇏ consequent (a ⇏ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nor.min
Checks if all values are false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/eqv.min
Checks if antecedent ⇔ consequent (a ⇔ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/eq.min
Checks if antecedent ⇔ consequent (a ⇔ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/eqv
Checks if antecedent ⇔ consequent (a ⇔ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/select.min
Checks if ith value is true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/not
Checks if value is false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/neq
Checks if antecedent ⇎ consequent (a ⇎ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/extra-boolean.min
Boolean data type has two possible truth values to represent logic.<br>
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.4.12
published almost 5 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/and
Checks if all values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nand.min
Checks if any value is false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nimply.min
Checks if antecedent ⇏ consequent (a ⇏ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/select
Checks if ith value is true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/count
Counts no. of true values.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nor
Checks if all values are false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/parse.min
Converts string to boolean.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/is.min
Checks if value is boolean.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/and.min
Checks if all values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/is
Checks if value is boolean.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/xor.min
Checks if odd no. of values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/parse
Converts string to boolean.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/imp.min
Checks if antecedent ⇒ consequent (a ⇒ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/count.min
Counts no. of true values.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/or
Checks if any value is true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/imp
Checks if antecedent ⇒ consequent (a ⇒ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/imply.min
Checks if antecedent ⇒ consequent (a ⇒ b).
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/xnor
Checks if even no. of values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/nand
Checks if any value is false.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: @extra-boolean/xor
Checks if odd no. of values are true.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: removed
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
npmjs.org: extra-boolean.web
Boolean data type has two possible truth values to represent logic {web}.
- Homepage: https://github.com/nodef/extra-boolean#readme
- License: MIT
-
Latest release: 1.11.1
published 9 months ago
Rankings
Maintainers (1)
npmjs.org: extra-boolean.min
Boolean data type has two possible truth values to represent logic.
- Homepage: https://github.com/nodef/extra-boolean
- License: MIT
- Status: unpublished
-
Latest release: 1.8.1
published over 4 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-node v2 composite
- coverallsapp/github-action master composite
- paambaati/codeclimate-action v3.0.0 composite
- actions/checkout v3 composite
- actions/setup-node v2 composite
- 341 dependencies
- @rollup/plugin-commonjs ^24.0.0 development
- @rollup/plugin-node-resolve ^15.0.1 development
- @types/jest ^29.2.5 development
- extra-build ^2.2.41 development
- jest ^29.3.1 development
- rollup-plugin-cleanup ^3.2.1 development
- rollup-plugin-dts ^5.1.1 development
- ts-jest ^29.0.5 development
