Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binary-breeder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary-breeder - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

package.json

@@ -5,3 +5,4 @@ {

"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"main": "lib/binary-breeder.js",
"devDependencies": {

@@ -16,2 +17,3 @@ "chai": "^3.2.0",

"test": "mocha",
"cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec",
"test-travis": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec"

@@ -18,0 +20,0 @@ },

# binary-breeder
Breeds two strings of binary digits for use in genetic algorithms
Breeds two strings of binary digits and breeds the requested number of offspring.
[![npm](https://img.shields.io/npm/v/binary-breeder.svg)](https://www.npmjs.com/package/binary-breeder)
[![Coverage Status](https://coveralls.io/repos/jhaugh42/binary-breeder/badge.svg?branch=master&service=github)](https://coveralls.io/github/jhaugh42/binary-breeder?branch=master)
[![Build Status](https://travis-ci.org/jhaugh42/binary-breeder.svg?branch=master)](https://travis-ci.org/jhaugh42/binary-breeder)
##Installation
`npm install binary-breeder`
##Dev Setup
```
npm install -g mocha
npm install -g istanbul
```
##Unit Tests
```
npm test
```
##Coverage
```
npm run cover
```
##Usage
```javascript
var reproduce = require('binary-breeder');
var numOffspring = 5;
var mutationChance = 0.002;
var parentChromosomes = [
'000011001101100101',
'110010100110110100'
];
var offspring = reproduce(parentChromosomes, numOffspring, mutationChance);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc