# bool-permutations

> Create config objects representing all permutations of a set of boolean keys

Latest version **1.0.2** (published 2016-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install bool-permutations
pnpm add bool-permutations
yarn add bool-permutations
bun add bool-permutations
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-02-10 |
| First published | 2016-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | J. Darren James |
| Maintainers | jdarren |

## Links

- npm: https://www.npmjs.com/package/bool-permutations
- Repository: https://github.com/jdarren/bool-permutations
- Homepage: https://github.com/jdarren/bool-permutations#readme
- Issues: https://github.com/jdarren/bool-permutations/issues
- npm.io page: https://npm.io/package/bool-permutations

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.3.0
- [js-combinatorics](https://npm.io/package/js-combinatorics.md) ^0.5.0

## Recent versions

- 1.0.2 (latest) — 2016-02-10

## README

# bool-permutations

## Getting Started

Install the module with: 'npm install bool-permutations'

## Usage
```javascript
var boolPermutations = require('bool-permutations');
var configMaps       = boolPermutations.build([ 'secure', 'rtl' ]);
console.log(configMaps);
```
### Result
```javascript
[
    {secure: false, rtl: false},
    {secure: false, rtl: true},
    {secure: true,  rtl: false},
    {secure: true,  rtl: true}
]
```

## Building a label
 ```javascript
var boolPermutations = require('bool-permutations');
console.log( boolPermutations.getLabel({secure: true, rtl: false}, 'css') );   // ->  'css-secure'
console.log( boolPermutations.getLabel({secure: false rtl: true},  'css') );   // ->  'css-rtl'
console.log( boolPermutations.getLabel({secure: true, rtl: true},  'css') );   // ->  'css-secure-rtl'
```

## License

Copyright (c) 2016

Licensed under the MIT license.

---
_Source: https://npm.io/package/bool-permutations · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
