Skip to content

Commit ff77d90

Browse files
committed
[readme] update URLs, add badges
1 parent 8e01307 commit ff77d90

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

README.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
# to-buffer
1+
# to-buffer <sup>[![Version Badge][2]][1]</sup>
22

33
Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back.
44

5+
[![github actions][actions-image]][actions-url]
6+
[![coverage][codecov-image]][codecov-url]
7+
[![dependency status][5]][6]
8+
[![dev dependency status][7]][8]
9+
[![License][license-image]][license-url]
10+
[![Downloads][downloads-image]][downloads-url]
11+
12+
[![npm badge][11]][1]
13+
14+
515
```
616
npm install to-buffer
717
```
818

9-
[![build status](https://travis-ci.org/mafintosh/to-buffer.svg?branch=master)](https://travis-ci.org/mafintosh/to-buffer)
10-
1119
## Usage
1220

1321
``` js
@@ -19,6 +27,18 @@ console.log(toBuffer('6869', 'hex')); // <Buffer 68 69>
1927
console.log(toBuffer(43)); // throws
2028
```
2129

22-
## License
23-
24-
MIT
30+
[1]: https://npmjs.org/package/to-buffer
31+
[2]: https://versionbadg.es/browserify/to-buffer.svg
32+
[5]: https://david-dm.org/browserify/to-buffer.svg
33+
[6]: https://david-dm.org/browserify/to-buffer
34+
[7]: https://david-dm.org/browserify/to-buffer/dev-status.svg
35+
[8]: https://david-dm.org/browserify/to-buffer#info=devDependencies
36+
[11]: https://nodei.co/npm/to-buffer.png?downloads=true&stars=true
37+
[license-image]: https://img.shields.io/npm/l/to-buffer.svg
38+
[license-url]: LICENSE
39+
[downloads-image]: https://img.shields.io/npm/dm/to-buffer.svg
40+
[downloads-url]: https://npm-stat.com/charts.html?package=to-buffer
41+
[codecov-image]: https://codecov.io/gh/browserify/to-buffer/branch/main/graphs/badge.svg
42+
[codecov-url]: https://app.codecov.io/gh/browserify/to-buffer/
43+
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/browserify/to-buffer
44+
[actions-url]: https://github.com/browserify/to-buffer/actions

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/mafintosh/to-buffer.git"
19+
"url": "https://github.com/browserify/to-buffer.git"
2020
},
2121
"author": "Mathias Buus (@mafintosh)",
2222
"license": "MIT",
2323
"bugs": {
24-
"url": "https://github.com/mafintosh/to-buffer/issues"
24+
"url": "https://github.com/browserify/to-buffer/issues"
2525
},
26-
"homepage": "https://github.com/mafintosh/to-buffer",
26+
"homepage": "https://github.com/browserify/to-buffer",
2727
"dependencies": {
2828
"isarray": "^2.0.5",
2929
"safe-buffer": "^5.2.1"

0 commit comments

Comments
 (0)