UNPKG

motion

Version:

motion - moving development forward

72 lines (71 loc) 2.91 kB
{ "_args": [ [ "alphanum-sort@https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "alphanum-sort@>=1.0.1 <2.0.0", "_id": "alphanum-sort@1.0.2", "_inCache": true, "_location": "/alphanum-sort", "_phantomChildren": {}, "_requested": { "name": "alphanum-sort", "raw": "alphanum-sort@https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "rawSpec": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "scope": null, "spec": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "type": "remote" }, "_requiredBy": [ "/postcss-minify-params", "/postcss-minify-selectors", "/postcss-unique-selectors" ], "_resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "_shasum": "97a1119649b211ad33691d9f9f486a8ec9fbe0a3", "_shrinkwrap": null, "_spec": "alphanum-sort@https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "trysound@yandex.ru", "name": "Bogdan Chadkin" }, "bugs": { "url": "https://github.com/TrySound/alphanum-sort/issues" }, "dependencies": {}, "description": "Alphanumeric sorting algorithm", "devDependencies": { "eslint": "^1.5.1", "javascript-natural-sort": "^0.7.1", "tap-spec": "^4.1.0", "tape": "^4.2.0" }, "files": [ "lib" ], "homepage": "https://github.com/TrySound/alphanum-sort", "keywords": [ "alphanum", "alphanumeric", "human", "natural", "sort" ], "license": "MIT", "main": "lib/index.js", "name": "alphanum-sort", "optionalDependencies": {}, "readme": "# alphanum-sort\r\n[![Build Status](https://travis-ci.org/TrySound/alphanum-sort.svg?branch=master)](https://travis-ci.org/TrySound/alphanum-sort)\r\n\r\n> Alphanumeric sorting algorithm\r\n\r\n## Install\r\n\r\nWith [npm](https://npmjs.org/package/alphanum-sort) do:\r\n\r\n```\r\nnpm i alphanum-sort -S\r\n```\r\n\r\n## Example\r\n\r\n```js\r\nvar sort = require('alphanum-sort');\r\n\r\nvar result = sort(['item20', 'item19', 'item1', 'item10', 'item2']);\r\n// ['item1', 'item2', 'item10', 'item19', 'item20']\r\n```\r\n\r\n## API\r\n\r\n### alphanumSort(array, options)\r\n\r\n#### options\r\n\r\n##### insensitive\r\n\r\nType: `Boolean`\r\nDefault: `false`\r\n\r\nCompares items case insensitively\r\n\r\n##### sign\r\n\r\nType: `Boolean`\r\nDefault: `false`\r\n\r\nAllows `+` and `-` characters before numbers\r\n\r\n## License\r\n\r\nMIT © [Bogdan Chadkin](https://github.com/trysound)\r\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/TrySound/alphanum-sort.git" }, "scripts": { "test": "eslint lib test.js && tape test.js | tap-spec" }, "version": "1.0.2" }