Skip to content

Commit 0b003e1

Browse files
committed
Meta tweaks
1 parent 60d2039 commit 0b003e1

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- '14'
34
- '12'
45
- '10'
56
- '8'

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
44

55
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:
66

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "Strip comments from JSON. Lets you use comments in your JSON files!",
55
"license": "MIT",
66
"repository": "sindresorhus/strip-json-comments",
7+
"funding": "https://github.com/sponsors/sindresorhus",
78
"author": {
89
"name": "Sindre Sorhus",
910
"email": "[email protected]",
10-
"url": "sindresorhus.com"
11+
"url": "https://sindresorhus.com"
1112
},
1213
"engines": {
1314
"node": ">=8"

readme.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# strip-json-comments [![Build Status](https://travis-ci.org/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-json-comments)
1+
# strip-json-comments [![Build Status](https://travis-ci.com/sindresorhus/strip-json-comments.svg?branch=master)](https://travis-ci.com/github/sindresorhus/strip-json-comments)
22

33
> Strip comments from JSON. Lets you use comments in your JSON files!
44
@@ -15,14 +15,12 @@ It will replace single-line comments `//` and multi-line comments `/**/` with wh
1515

1616
Also available as a [Gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[Grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[Broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.
1717

18-
1918
## Install
2019

2120
```
2221
$ npm install strip-json-comments
2322
```
2423

25-
2624
## Usage
2725

2826
```js
@@ -35,7 +33,6 @@ JSON.parse(stripJsonComments(json));
3533
//=> {unicorn: 'cake'}
3634
```
3735

38-
3936
## API
4037

4138
### stripJsonComments(jsonString, options?)
@@ -52,25 +49,22 @@ Type: `object`
5249

5350
##### whitespace
5451

55-
Type: `boolean`<br>
52+
Type: `boolean`\
5653
Default: `true`
5754

5855
Replace comments with whitespace instead of stripping them entirely.
5956

60-
6157
## Benchmark
6258

6359
```
6460
$ npm run bench
6561
```
6662

67-
6863
## Related
6964

7065
- [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module
7166
- [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS
7267

73-
7468
---
7569

7670
<div align="center">

0 commit comments

Comments
 (0)