Skip to content

Commit 1f4a8e9

Browse files
committed
update readme badges.. upgrade deps
1 parent cfd0b47 commit 1f4a8e9

5 files changed

Lines changed: 402 additions & 410 deletions

File tree

README.hbs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
[![view on npm](http://img.shields.io/npm/v/sort-array.svg)](https://www.npmjs.org/package/sort-array)
2-
[![npm module downloads](http://img.shields.io/npm/dt/sort-array.svg)](https://www.npmjs.org/package/sort-array)
1+
[![view on npm](https://badgen.net/npm/v/sort-array)](https://www.npmjs.org/package/sort-array)
2+
[![npm module downloads](https://badgen.net/npm/dt/sort-array)](https://www.npmjs.org/package/sort-array)
3+
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/sort-array)](https://github.com/75lb/sort-array/network/dependents?dependent_type=REPOSITORY)
4+
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/sort-array)](https://github.com/75lb/sort-array/network/dependents?dependent_type=PACKAGE)
35
[![Build Status](https://travis-ci.org/75lb/sort-array.svg?branch=master)](https://travis-ci.org/75lb/sort-array)
4-
[![Dependency Status](https://badgen.net/david/dep/75lb/sort-array)](https://david-dm.org/75lb/sort-array)
56
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
67

78
# sort-array

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[![view on npm](https://badgen.net/npm/v/sort-array)](https://www.npmjs.org/package/sort-array)
22
[![npm module downloads](https://badgen.net/npm/dt/sort-array)](https://www.npmjs.org/package/sort-array)
3+
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/sort-array)](https://github.com/75lb/sort-array/network/dependents?dependent_type=REPOSITORY)
4+
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/sort-array)](https://github.com/75lb/sort-array/network/dependents?dependent_type=PACKAGE)
35
[![Build Status](https://travis-ci.org/75lb/sort-array.svg?branch=master)](https://travis-ci.org/75lb/sort-array)
4-
[![Dependency Status](https://badgen.net/david/dep/75lb/sort-array)](https://david-dm.org/75lb/sort-array)
56
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
67

78
# sort-array
@@ -172,15 +173,15 @@ Please visit [the sort-array wiki](https://github.com/75lb/sort-array/wiki) for
172173
### sort-array
173174
Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order.
174175

175-
**Example**
176+
**Example**
176177
```js
177178
const sortArray = require('sort-array')
178179
```
179180
<a name="exp_module_sort-array--sortArray"></a>
180181

181182
#### sortArray(array, [options]) ⇒ <code>Array</code> ⏏
182-
**Kind**: Exported function
183-
**Returns**: <code>Array</code> - Returns the array that was passed in.
183+
**Kind**: Exported function
184+
**Returns**: <code>Array</code> - Returns the array that was passed in.
184185

185186
| Param | Type | Description |
186187
| --- | --- | --- |
@@ -201,19 +202,19 @@ This library is compatible with Node.js, the Web and any style of module loader.
201202
Node.js:
202203

203204
```js
204-
const sortArray = require('sort-array')
205+
const arrayify = require('sort-array')
205206
```
206207

207208
Within Node.js with ECMAScript Module support enabled:
208209

209210
```js
210-
import sortArray from 'sort-array'
211+
import arrayify from 'sort-array'
211212
```
212213

213214
Within an modern browser ECMAScript Module:
214215

215216
```js
216-
import sortArray from './node_modules/sort-array/dist/index.mjs'
217+
import arrayify from './node_modules/sort-array/dist/index.mjs'
217218
```
218219

219220
Old browser (adds `window.sortArray`):

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function (global, factory) {
22
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
33
typeof define === 'function' && define.amd ? define(factory) :
4-
(global = global || self, global.sortArray = factory());
4+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.sortArray = factory());
55
}(this, (function () { 'use strict';
66

77
/**

0 commit comments

Comments
 (0)