Skip to content

Commit 29a4ef5

Browse files
committed
readme.. add Node 14 to travis.. more tests
1 parent 38bf64b commit 29a4ef5

5 files changed

Lines changed: 356 additions & 576 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ language: node_js
22
node_js:
33
- 10
44
- 12
5-
- 13
5+
- 14

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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)
33
[![Build Status](https://travis-ci.org/75lb/sort-array.svg?branch=master)](https://travis-ci.org/75lb/sort-array)
44
[![Dependency Status](https://badgen.net/david/dep/75lb/sort-array)](https://david-dm.org/75lb/sort-array)
55
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
@@ -172,15 +172,15 @@ Please visit [the sort-array wiki](https://github.com/75lb/sort-array/wiki) for
172172
### sort-array
173173
Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order.
174174

175-
**Example**
175+
**Example**
176176
```js
177177
const sortArray = require('sort-array')
178178
```
179179
<a name="exp_module_sort-array--sortArray"></a>
180180

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

185185
| Param | Type | Description |
186186
| --- | --- | --- |
@@ -201,19 +201,19 @@ This library is compatible with Node.js, the Web and any style of module loader.
201201
Node.js:
202202

203203
```js
204-
const arrayify = require('sort-array')
204+
const sortArray = require('sort-array')
205205
```
206206

207207
Within Node.js with ECMAScript Module support enabled:
208208

209209
```js
210-
import arrayify from 'sort-array'
210+
import sortArray from 'sort-array'
211211
```
212212

213213
Within an modern browser ECMAScript Module:
214214

215215
```js
216-
import arrayify from './node_modules/sort-array/dist/index.mjs'
216+
import sortArray from './node_modules/sort-array/dist/index.mjs'
217217
```
218218

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

0 commit comments

Comments
 (0)