-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 4.26 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"name": "stable",
"version": "0.1.5",
"keywords": [
"stable",
"array",
"sort"
],
"description": "A stable array sort for JavaScript",
"repository": {
"type": "git",
"url": "https://github.com/Two-Screen/stable.git"
},
"main": "./stable.js",
"devDependencies": {
"tape": "2",
"uglify-js": "2"
},
"scripts": {
"test": "node ./test.js",
"minify": "uglifyjs --comments '/^!/' -c -m -o ./stable.min.js ./stable.js"
},
"testling": {
"files": "./test.js",
"browsers": [
"ie6",
"ie7",
"ie8",
"ie9",
"ie10",
"firefox/25",
"chrome/31",
"safari/6.0",
"opera/12.0",
"opera/17.0",
"iphone/6.0",
"android-browser/4.2"
]
},
"author": {
"name": "Angry Bytes",
"email": "info@angrybytes.com"
},
"contributors": [
{
"name": "Stéphan Kochen",
"email": "stephan@angrybytes.com"
},
{
"name": "Domenic Denicola",
"email": "domenic@domenicdenicola.com"
},
{
"name": "Yaffle"
}
],
"license": "MIT",
"readme": "## Stable\n\nA stable array sort, because `Array#sort()` is not guaranteed stable.\n\nMIT licensed.\n\n[![Node.js CI](https://secure.travis-ci.org/Two-Screen/stable.png)](http://travis-ci.org/Two-Screen/stable)\n\n[![Browser CI](http://ci.testling.com/Two-Screen/stable.png)](http://ci.testling.com/Two-Screen/stable)\n\n#### From the browser\n\nInclude [`stable.js`] or the minified version [`stable.min.js`]\nin your page, then call `stable()`.\n\n [`stable.js`]: https://raw.github.com/Two-Screen/stable/master/stable.js\n [`stable.min.js`]: https://raw.github.com/Two-Screen/stable/master/stable.min.js\n\n#### From Node.js\n\nInstall using NPM:\n\n npm install stable\n\nRequire in your code:\n\n var stable = require(\"stable\");\n\n#### Usage\n\nThe default sort is, as with `Array#sort`, lexicographical:\n\n stable([\"foo\", \"bar\", \"baz\"]); // => [\"bar\", \"baz\", \"foo\"]\n stable([10, 1, 5]); // => [1, 10, 5]\n\nUnlike `Array#sort`, the default sort is **NOT** in-place. To do an in-place\nsort, use `stable.inplace`, which otherwise works the same:\n\n var arr = [10, 1, 5];\n stable(arr) === arr; // => false\n stable.inplace(arr) === arr; // => true\n\nA comparator function can be specified:\n\n // Regular sort() compatible comparator, that returns a number.\n // This demonstrates the default behavior.\n function lexCmp(a, b) {\n return String(a).localeCompare(b);\n }\n stable([\"foo\", \"bar\", \"baz\"], lexCmp); // => [\"bar\", \"baz\", \"foo\"]\n\n // Boolean comparator. Sorts `b` before `a` if true.\n // This demonstrates a simple way to sort numerically.\n function greaterThan(a, b) {\n return a > b;\n }\n stable([10, 1, 5], greaterThan); // -> [1, 5, 10]\n\n#### License\n\nCopyright (C) 2014 Angry Bytes and contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/Two-Screen/stable/issues"
},
"homepage": "https://github.com/Two-Screen/stable",
"_id": "stable@0.1.5",
"_shasum": "08232f60c732e9890784b5bed0734f8b32a887b9",
"_from": "stable@~0.1.2",
"_resolved": "https://registry.npmjs.org/stable/-/stable-0.1.5.tgz"
}