open-index/open-npm huggingface dataset:
npm package: @nathanfaucett/apply
Description: apply for calling functions with array of arguments
Author: Nathan Faucett
Latest version: 0.0.1

apply [![Build Status](https://travis-ci.org/nathanfaucett/apply.svg?branch=master)](https://travis-ci.org/nathanfaucett/apply)
=======

apply for calling functions with array of arguments

```javascript
var apply = require("@nathanfaucett/apply");


function add() {
    var out = 0;

    for (var i = 0, il = arguments.length; i < il; i++) {
        out += arguments[i];
    }
    
    return out;
}

apply(add, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); // 55
```
npm package: @nathanfaucett/approximate_search
Description: fuzzy match on strings
Author: Nathan Faucett
Latest version: 0.0.2

# approximate_search

fuzzy match on strings

```javascript
var approximateSearch = require("@nathanfaucett/approximate_search");

approximateSearch("twl", "cartwheel") === true;
approximateSearch("cart", "cartwheel") === true;
approximateSearch("cw", "cartwheel") === true;
approximateSearch("ee", "cartwheel") === true;
approximateSearch("art", "cartwheel") === true;
approximateSearch("eeel", "cartwheel") === false;
approximateSearch("dog", "cartwheel") === false;
```
npm package: @nathanfaucett/apt
Description: apt is the application architecture that based on facebook's apt uses for building client-side web applications.
Author: Nathan Faucett
Latest version: 0.0.5

apt [![Build Status](https://travis-ci.org/nathanfaucett/apt.svg?branch=master)](https://travis-ci.org/nathanfaucett/apt)
=======

apt is the application architecture that based on facebook's apt uses for building client-side web applications.
npm package: @nathanfaucett/argv
Description: argv option parser
Author: Nathan Faucett
Latest version: 0.0.1

argv
=======

argv option parser


```javascript
var argv = require("@nathanfaucett/argv");


var optionsParser = argv({
    file: ["f", "start file", "string"],
    out: ["o", "out directory/file", "string"],
    ignore: ["i", "ignore paths", "array"],
    exportName: ["e", "export to global scope", "string"]
});

// if an array is not given uses process.argv.slice(2)
optionsParser.parse(); // returns object of parsed options
```
npm package: @nathanfaucett/array-every
Description: arrayEvery tests whether all elements in the array pass the test implemented by the provided function.
Author: Nathan Faucett
Latest version: 0.0.2

array-every
=======

tests whether all elements in the array pass the test implemented by the provided function.


```javascript
var arrayEvery = require("@nathanfaucett/array-every");


var isTrue = arrayEvery([2, 4, 6], function isDivisibleBy2(value, index, array) {
    return value % 2 === 0;
});
```
npm package: @nathanfaucett/array-filter
Description: creates a new array with all elements that pass the test implemented by the provided function.
Author: Nathan Faucett
Latest version: 0.0.1

array-filter
=======

creates a new array with all elements that pass the test implemented by the provided function.


```javascript
var arrayFilter = require("@nathanfaucett/array-filter");


var array = arrayFilter([1, 2, 3, 4, 5, 6], function isDivisibleBy2(value, index, array) {
    return value % 2 === 0;
});

// array === [2, 4, 6]
```
npm package: @nathanfaucett/array-filter_one
Description: returns first element that pass the test implemented by the provided function.
Author: Nathan Faucett
Latest version: 0.0.1

array-filter_one
=======

returns first element that pass the test implemented by the provided function.


```javascript
var arrayFilterOne = require("@nathanfaucett/array-filter_one");


var four = arrayFilterOne([2, 4, 6], function isFour(value, index, array) {
    return value === 4;
});
```
npm package: @nathanfaucett/array-for_each
Description: executes a provided function once per array element.
Author: Nathan Faucett
Latest version: 0.0.1

array-for_each
=======

executes a provided function once per array element.


```javascript
var arrayForEach = require("@nathanfaucett/array-for_each");


arrayForEach([2, 4, 6], function(value, index, array) {
    console.log(value, index, array);
});
```
npm package: @nathanfaucett/array-for_each_right
Description: executes a provided function once per array element.
Author: Nathan Faucett
Latest version: 0.0.1

array-for_each_right
=======

executes a provided function once per array element.


```javascript
var arrayForEachRight = require("@nathanfaucett/array-for_each_right");


arrayForEachRight([2, 4, 6], function(value, index, array) {
    console.log(value, index, array);
});
```
npm package: @nathanfaucett/array-map
Description: creates a new array with the results of calling a provided function on every element in this array.
Author: Nathan Faucett
Latest version: 0.0.1

array-map
=======

array map for the browser and node.js


```javascript
var arrayMap = require("@nathanfaucett/array-map");


var array = arrayMap([1, 2, 3, 4, 5, 6], function(value, index, array) {
    return value % 2 === 0;
});

array === [2, 4, 6];
```
npm package: @nathanfaucett/array-reduce
Description: applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.
Author: Nathan Faucett
Latest version: 0.0.1

array-reduce
=======

applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.


```javascript
var arrayReduce = require("@nathanfaucett/array-reduce");


arrayReduce([0, 1, 2, 3, 4], function(currentValue, value) {
    return currentValue + value;
}) === 10;
```
npm package: @nathanfaucett/array-reduce_right
Description: applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.
Author: Nathan Faucett
Latest version: 0.0.1

array-reduce_right
=======

applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.


```javascript
var arrayReduceRight = require("@nathanfaucett/array-reduce_right");


arrayReduceRight([0, 1, 2, 3, 4], function(currentValue, value) {
    return currentValue + value;
}) === 10;
```
npm package: @nathanfaucett/array-some
Description: tests whether one element in the array pass the test implemented by the provided function.
Author: Nathan Faucett
Latest version: 0.0.1

array-some
=======

tests whether one element in the array pass the test implemented by the provided function.


```javascript
var arraySome = require("@nathanfaucett/array-some");


arraySome([0, 1, 2, 3, 4], function(value, index, array) {
    return value === 3;
}) === true;
```
npm package: @nathanfaucett/async_done
Description: handles completion and errors for callbacks, promises, observables, child processes and streams.
Author: Nathan Faucett
Latest version: 0.0.1

async_done [![Build Status](https://travis-ci.org/nathanfaucett/async_done.svg?branch=master)](https://travis-ci.org/nathanfaucett/async_done)
=======

Handles completion and errors for callbacks, promises, observables, child processes and streams.
npm package: @nathanfaucett/async_json
Description: async JSON parse/stringify
Author: Nathan Faucett
Latest version: 0.0.3

asyncJSON
=======

async JSON parse/stringify

# Install
```bash
$ npm install @nathanfaucett/async_json --save
```

# Usage
```javascript
var asyncJSON = require("@nathanfaucett/async_json");


asyncJSON.stringify({
        key: "value"
    },
    null, // optional replacer,
    2, // optional space,
    function onStringify(error, string) {
        var reviver;

        if (error) {
            // handle error
            console.log(error);
        } else {
            reviver = {
                key2: "value2"
            };

            asyncJSON.parse(
                string,
                reviver, // optional reviver
                function onParse(error, object) {
                    if (error) {
                        // handle error
                        console.log(error);
                    } else {
                        // object === { key: "value", key2: "value2" };
                        console.log(object);
                    }
                }
            );
        }
    }
)
```

# Docs

#### stringify(value[, replacer[, space]], callback)
    method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.

#### parse(text[, reviver], callback)
    method parses a string as JSON, optionally transforming the value produced by parsing.