This commit is contained in:
14
node_modules/sort-desc/.gitattributes
generated
vendored
Normal file
14
node_modules/sort-desc/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Enforce Unix newlines
|
||||
*.* text eol=lf
|
||||
*.css text eol=lf
|
||||
*.html text eol=lf
|
||||
*.js text eol=lf
|
||||
*.json text eol=lf
|
||||
*.less text eol=lf
|
||||
*.md text eol=lf
|
||||
*.yml text eol=lf
|
||||
|
||||
*.jpg binary
|
||||
*.gif binary
|
||||
*.png binary
|
||||
*.jpeg binary
|
||||
22
node_modules/sort-desc/.jshintrc
generated
vendored
Normal file
22
node_modules/sort-desc/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"esnext": true,
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"node": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"globals": {
|
||||
"define": true,
|
||||
"before": true,
|
||||
"after": true,
|
||||
"describe": true,
|
||||
"it": true
|
||||
}
|
||||
}
|
||||
52
node_modules/sort-desc/.npmignore
generated
vendored
Normal file
52
node_modules/sort-desc/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
# Numerous always-ignore extensions
|
||||
*.csv
|
||||
*.dat
|
||||
*.diff
|
||||
*.err
|
||||
*.gz
|
||||
*.log
|
||||
*.orig
|
||||
*.out
|
||||
*.pid
|
||||
*.rar
|
||||
*.rej
|
||||
*.seed
|
||||
*.swo
|
||||
*.swp
|
||||
*.vi
|
||||
*.yo-rc.json
|
||||
*.zip
|
||||
*~
|
||||
.ruby-version
|
||||
lib-cov
|
||||
npm-debug.log
|
||||
|
||||
# Always-ignore dirs
|
||||
/bower_components/
|
||||
/node_modules/
|
||||
/temp/
|
||||
/tmp/
|
||||
/vendor/
|
||||
_gh_pages
|
||||
|
||||
# OS or Editor folders
|
||||
*.esproj
|
||||
*.komodoproject
|
||||
.komodotools
|
||||
*.sublime-*
|
||||
._*
|
||||
.cache
|
||||
.DS_Store
|
||||
.idea
|
||||
.project
|
||||
.settings
|
||||
.tmproj
|
||||
nbproject
|
||||
Thumbs.db
|
||||
|
||||
# grunt-html-validation
|
||||
validation-status.json
|
||||
validation-report.json
|
||||
|
||||
# misc
|
||||
TODO.md
|
||||
25
node_modules/sort-desc/.verbrc.md
generated
vendored
Normal file
25
node_modules/sort-desc/.verbrc.md
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
# {%= name %} {%= badge("fury") %}
|
||||
|
||||
> {%= description %}
|
||||
|
||||
## Install
|
||||
{%= include("install-npm", {save: true}) %}
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var sortDesc = require('{%= name %}');
|
||||
console.log((['d', 'c', 'b', 'a']).sort(sortDesc));
|
||||
//=> ['a', 'b', 'c', 'd']
|
||||
```
|
||||
|
||||
## Author
|
||||
{%= include("author") %}
|
||||
|
||||
## License
|
||||
{%= copyright() %}
|
||||
{%= license() %}
|
||||
|
||||
***
|
||||
|
||||
{%= include("footer") %}
|
||||
22
node_modules/sort-desc/LICENSE-MIT
generated
vendored
Normal file
22
node_modules/sort-desc/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
33
node_modules/sort-desc/README.md
generated
vendored
Normal file
33
node_modules/sort-desc/README.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# sort-desc [](http://badge.fury.io/js/sort-desc)
|
||||
|
||||
> Sort array elements in descending order.
|
||||
|
||||
## Install
|
||||
#### Install with [npm](npmjs.org)
|
||||
|
||||
```bash
|
||||
npm i sort-desc --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var sortDesc = require('sort-desc');
|
||||
console.log((['d', 'c', 'b', 'a']).sort(sortDesc));
|
||||
//=> ['a', 'b', 'c', 'd']
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
Released under the MIT license
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 15, 2014._
|
||||
12
node_modules/sort-desc/index.js
generated
vendored
Normal file
12
node_modules/sort-desc/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/*!
|
||||
* sort-desc <https://github.com/helpers/sort-desc>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function (a, b) {
|
||||
return a < b ? -1 : 1;
|
||||
};
|
||||
48
node_modules/sort-desc/package.json
generated
vendored
Normal file
48
node_modules/sort-desc/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "sort-desc",
|
||||
"description": "Sort array elements in descending order.",
|
||||
"version": "0.1.1",
|
||||
"homepage": "https://github.com/jonschlinkert/sort-desc",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jonschlinkert/sort-desc.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/sort-desc/issues"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/jonschlinkert/sort-desc/blob/master/LICENSE-MIT"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"array",
|
||||
"arr",
|
||||
"desc",
|
||||
"descending",
|
||||
"function",
|
||||
"keys",
|
||||
"key",
|
||||
"order",
|
||||
"ordered",
|
||||
"obj",
|
||||
"object",
|
||||
"sort"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha -R spec"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"verb": "^0.2.15"
|
||||
}
|
||||
}
|
||||
18
node_modules/sort-desc/test.js
generated
vendored
Normal file
18
node_modules/sort-desc/test.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*!
|
||||
* sort-desc <https://github.com/jonschlinkert/sort-desc>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var assert = require('assert');
|
||||
var sortDesc = require('./');
|
||||
|
||||
describe('sort object', function () {
|
||||
it('should sort keys in descending order.', function () {
|
||||
var actual = (['d', 'c', 'b', 'a']).sort(sortDesc);
|
||||
assert.deepEqual(actual, ['a', 'b', 'c', 'd'] );
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user