{"_id":"core.arity","_rev":"4179618","name":"core.arity","description":"Restricts the arity of variadic functions.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"killdream","email":""},{"name":"robotlolita","email":""}],"time":{"modified":"2026-03-01T21:45:20.000Z","created":"2014-04-12T21:36:29.822Z","1.0.0":"2014-04-12T21:36:29.822Z"},"users":{},"author":{"name":"Quildreen Motta"},"repository":{"type":"git","url":"https://github.com/folktale/core.arity"},"versions":{"1.0.0":{"name":"core.arity","version":"1.0.0","description":"Restricts the arity of variadic functions.","main":"lib/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/folktale/core.arity"},"keywords":["folktale"],"author":{"name":"Quildreen Motta"},"license":"MIT","bugs":{"url":"https://github.com/folktale/core.arity/issues"},"dependencies":{},"devDependencies":{"browserify":"^3.33.0","ink-docstrap":"git://github.com/robotlolita/docstrap","jsdoc":"^3.3.0-alpha5","LiveScript":"~1.2.0","hifive-tap":"~0.1.0","hifive":"~0.1.0","uglify-js":"~2.4.3","laws":"~0.2.1","claire":"^0.4.1"},"homepage":"https://github.com/folktale/core.arity","_id":"core.arity@1.0.0","dist":{"shasum":"5d4c9dd2087bf9d9fc9b7fc2591ab5e02722d28f","size":429557,"noattachment":false,"key":"/core.arity/-/core.arity-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/core.arity/download/core.arity-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"killdream","email":"quildreen@gmail.com"},"maintainers":[{"name":"killdream","email":""},{"name":"robotlolita","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:33:56.904Z","publish_time":1397338589822,"_cnpm_publish_time":1397338589822}},"readme":"core.arity\n==========\n\n[![Build Status](https://secure.travis-ci.org/folktale/core.arity.png?branch=master)](https://travis-ci.org/folktale/core.arity)\n[![NPM version](https://badge.fury.io/js/core.arity.png)](http://badge.fury.io/js/core.arity)\n[![Dependencies Status](https://david-dm.org/folktale/core.arity.png)](https://david-dm.org/folktale/core.arity)\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\n\nRestricts the arity of variadic functions.\n\n\n## Example\n\n```js\nvar arity = require('core.arity')\n\n[1, -1, 2, -3].reduce(arity.binary(Math.max), 0)\n// => 2\n```\n\n\n## Installing\n\nThe easiest way is to grab it from NPM. If you're running in a Browser\nenvironment, you can use [Browserify][]\n\n    $ npm install core.arity\n\n\n### Using with CommonJS\n\nIf you're not using NPM, [Download the latest release][release], and require\nthe `core.arity.umd.js` file:\n\n```js\nvar arity = require('core.arity')\n```\n\n\n### Using with AMD\n\n[Download the latest release][release], and require the `core.arity.umd.js`\nfile:\n\n```js\nrequire(['core.arity'], function(arity) {\n  ( ... )\n})\n```\n\n\n### Using without modules\n\n[Download the latest release][release], and load the `core.arity.umd.js`\nfile. The properties are exposed in the global `folktale.core.arity` object:\n\n```html\n<script src=\"/path/to/core.arity.umd.js\"></script>\n```\n\n\n### Compiling from source\n\nIf you want to compile this library from the source, you'll need [Git][],\n[Make][], [Node.js][], and run the following commands:\n\n    $ git clone git://github.com/folktale/core.arity.git\n    $ cd core.arity\n    $ npm install\n    $ make bundle\n    \nThis will generate the `dist/core.arity.umd.js` file, which you can load in\nany JavaScript environment.\n\n    \n## Documentation\n\nYou can [read the documentation online][docs] or build it yourself:\n\n    $ git clone git://github.com/folktale/core.arity.git\n    $ cd core.arity\n    $ npm install\n    $ make documentation\n\nThen open the file `docs/index.html` in your browser.\n\n\n## Platform support\n\nThis library assumes an ES5 environment, but can be easily supported in ES3\nplatforms by the use of shims. Just include [es5-shim][] :)\n\n\n## Licence\n\nCopyright (c) 2014 Quildreen Motta.\n\nReleased under the [MIT licence](https://github.com/folktale/core.arity/blob/master/LICENCE).\n\n<!-- links -->\n[Fantasy Land]: https://github.com/fantasyland/fantasy-land\n[Browserify]: http://browserify.org/\n[Git]: http://git-scm.com/\n[Make]: http://www.gnu.org/software/make/\n[Node.js]: http://nodejs.org/\n[es5-shim]: https://github.com/kriskowal/es5-shim\n[docs]: http://folktale.github.io/core.arity\n<!-- [release: https://github.com/folktale/core.arity/releases/download/v$VERSION/core.arity-$VERSION.tar.gz] -->\n[release]: https://github.com/folktale/core.arity/releases/download/v1.0.0/core.arity-1.0.0.tar.gz\n<!-- [/release] -->\n","_attachments":{},"homepage":"https://github.com/folktale/core.arity","bugs":{"url":"https://github.com/folktale/core.arity/issues"},"license":"MIT"}