Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/xor
tiny xor utility function
https://github.com/component/xor
Last synced: 13 days ago
JSON representation
tiny xor utility function
- Host: GitHub
- URL: https://github.com/component/xor
- Owner: component
- Created: 2014-02-07T14:41:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T22:42:57.000Z (over 9 years ago)
- Last Synced: 2024-11-07T10:08:52.447Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 6
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# xor
tiny xor utility function
## Installation
Install with [component(1)](http://component.io):
$ component install component/xor
Or with node.js:
$ npm install component-xor
## API
### xor(bool, bool)
XOR two boolean values.
```js
xor(true, true) // false
xor(true, false) // true
xor(false, true) // true
xor(false, false) // false
```## Test
```
npm install
make test
```## License
MIT