Skip to content

Commit 0f34603

Browse files
committed
[readme] add github actions/codecov badges; update description
1 parent 92eb81c commit 0f34603

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# array.prototype.flatmap <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
22

3-
[![Build Status][travis-svg]][travis-url]
3+
[![github actions][actions-image]][actions-url]
4+
[![coverage][codecov-image]][codecov-url]
45
[![dependency status][deps-svg]][deps-url]
56
[![dev dependency status][dev-deps-svg]][dev-deps-url]
67
[![License][license-image]][license-url]
78
[![Downloads][downloads-image]][downloads-url]
89

910
[![npm badge][npm-badge-png]][package-url]
1011

11-
An ESnext spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.
12+
An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.
1213

13-
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](https://tc39.github.io/proposal-flatMap/).
14+
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-array.prototype.flatmap).
1415

1516
Because `Array.prototype.flatMap` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument.
1617

@@ -65,15 +66,17 @@ assert.deepEqual(arr.flatMap(mapper), flatMap(arr, mapper));
6566
Simply clone the repo, `npm install`, and run `npm test`
6667

6768
[package-url]: https://npmjs.org/package/array.prototype.flatmap
68-
[npm-version-svg]: http://versionbadg.es/es-shims/Array.prototype.flatMap.svg
69-
[travis-svg]: https://travis-ci.org/es-shims/Array.prototype.flatMap.svg
70-
[travis-url]: https://travis-ci.org/es-shims/Array.prototype.flatMap
69+
[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.flatMap.svg
7170
[deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap.svg
7271
[deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap
7372
[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.flatMap/dev-status.svg
7473
[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.flatMap#info=devDependencies
7574
[npm-badge-png]: https://nodei.co/npm/array.prototype.flatmap.png?downloads=true&stars=true
76-
[license-image]: http://img.shields.io/npm/l/array.prototype.flatmap.svg
75+
[license-image]: https://img.shields.io/npm/l/array.prototype.flatmap.svg
7776
[license-url]: LICENSE
78-
[downloads-image]: http://img.shields.io/npm/dm/array.prototype.flatmap.svg
79-
[downloads-url]: http://npm-stat.com/charts.html?package=array.prototype.flatmap
77+
[downloads-image]: https://img.shields.io/npm/dm/array.prototype.flatmap.svg
78+
[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.flatmap
79+
[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.flatMap/branch/main/graphs/badge.svg
80+
[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.flatMap/
81+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.flatMap
82+
[actions-url]: https://github.com/es-shims/Array.prototype.flatMap/actions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "http://ljharb.codes"
1717
}
1818
],
19-
"description": "An ESnext spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.",
19+
"description": "An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.",
2020
"license": "MIT",
2121
"main": "index",
2222
"scripts": {

0 commit comments

Comments
 (0)