All Projects → nas5w → combinate

nas5w / combinate

Licence: MIT license
Combinatorics generator for JavaScript and Typescript.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to combinate

fast-cartesian
Fast cartesian product
Stars: ✭ 51 (+155%)
Mutual labels:  combinatorics, combinations
combinatoricslib
Combinatorial Objects Generators for Java 7+.
Stars: ✭ 83 (+315%)
Mutual labels:  combinatorics, combinations
Abacus
Advanced Combinatorics and Algebraic Number Theory Symbolic Computation library for JavaScript, Python
Stars: ✭ 16 (-20%)
Mutual labels:  combinatorics, combinations
RcppAlgos
Tool for Solving Problems in Combinatorics and Computational Mathematics
Stars: ✭ 31 (+55%)
Mutual labels:  combinatorics, combinations
streamplify
Java 8 combinatorics-related streams and other utilities
Stars: ✭ 40 (+100%)
Mutual labels:  combinatorics, combinations
jest-teamcity
Jest Teamcity Reporter
Stars: ✭ 29 (+45%)
Mutual labels:  testing-tools
ExploratoryTestingChromeExtension
Exploratory Testing Chrome Extension
Stars: ✭ 26 (+30%)
Mutual labels:  testing-tools
extensiveautomation-server
Extensive Automation server
Stars: ✭ 19 (-5%)
Mutual labels:  testing-tools
dubbo-mock
dubbo mock web server
Stars: ✭ 62 (+210%)
Mutual labels:  testing-tools
series-formelles
Translation of, and commentary on, Joyal's classic paper "Une théorie combinatoire des séries formelles" (A combinatorial theory of formal series)
Stars: ✭ 24 (+20%)
Mutual labels:  combinatorics
BaseUrlManager
⛵ BaseUrlManager的设计初衷主要用于开发时,有多个环境需要打包APK的场景,通过BaseUrlManager提供的BaseUrl动态设置入口,只需打一次包,即可轻松随意的切换不同的开发环境或测试环境。在打生产环境包时,关闭BaseUrl动态设置入口即可。
Stars: ✭ 43 (+115%)
Mutual labels:  testing-tools
symfony-lts-docker-starter
🐳 Dockerized your Symfony project using a complete stack (Makefile, Docker-Compose, CI, bunch of quality insurance tools, tests ...) with a base according to up-to-date components and best practices.
Stars: ✭ 39 (+95%)
Mutual labels:  testing-tools
combinatorics.rb
Bringing (more) Combinatorics to Ruby.
Stars: ✭ 44 (+120%)
Mutual labels:  combinatorics
fakerfactory
伪造数据的API服务
Stars: ✭ 53 (+165%)
Mutual labels:  testing-tools
analog
🔎 Flexible web-based real-time log viewer
Stars: ✭ 15 (-25%)
Mutual labels:  testing-tools
rfswarm
Robot Framework Swarm
Stars: ✭ 68 (+240%)
Mutual labels:  testing-tools
Recorder
A browser extension that generates Cypress, Playwright and Puppeteer test scripts from your interactions 🖱 ⌨
Stars: ✭ 277 (+1285%)
Mutual labels:  testing-tools
software-testing-resource-pack
Various files useful for manual testing and test automation etc.
Stars: ✭ 38 (+90%)
Mutual labels:  testing-tools
TimeBomb
Stops app usage after a period of time has passed starting from app build date.
Stars: ✭ 22 (+10%)
Mutual labels:  testing-tools
rtf
Regression testing framework
Stars: ✭ 35 (+75%)
Mutual labels:  testing-tools

Combinate

Build Status Codecov Status

The perfect helper for generating all possible combinations of values.

Installation

Install with npm:

npm i combinate

Install with yarn:

yarn add combinate

Usage

Using combinate is fairly simple: create an object whose keys have all possible combinations in an array. Pass that object to combinate and your various permutations are returned.

import combinate from "combinate";

const values = {
  color: ["red", "blue", "green"],
  admin: [true, false],
  mode: ["light", "dark"],
};

const combinations = combinate(values);

console.log(combinations);

/*
[
  {"admin": true, "color": "red", "mode": "light"},
  {"admin": true, "color": "blue", "mode": "light"},
  {"admin": true, "color": "green", "mode": "light"},
  {"admin": false, "color": "red", "mode": "light"},
  {"admin": false, "color": "blue", "mode": "light"},
  {"admin": false, "color": "green", "mode": "light"},
  {"admin": true, "color": "red", "mode": "dark"},
  {"admin": true, "color": "blue", "mode": "dark"},
  {"admin": true, "color": "green", "mode": "dark"},
  {"admin": false, "color": "red", "mode": "dark"},
  {"admin": false, "color": "blue", "mode": "dark"},
  {"admin": false, "color": "green", "mode": "dark"}
]
*/

MIT License

Copyright (c) 2021 Nick Scialli

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].