Socket
Socket
Sign inDemoInstall

json-truncate

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 2.0.0

.travis.yml

55

package.json
{
"name": "json-truncate",
"version": "1.3.0",
"version": "2.0.0",
"description": "A way to truncate a json object.",
"main": "index.js",
"main": "json-truncate.js",
"scripts": {

@@ -12,10 +12,11 @@ "precommit": "npm run lint && npm run coverage",

"coverage-report": "nyc report --reporter=lcov",
"doc": "esdoc -c doc.json",
"test": "npm run build && _mocha --compilers js:babel-register",
"test": "mocha",
"prebuild": "rimraf dist",
"doc": "jsdoc json-truncate.js -d docs",
"predoc": "rimraf docs",
"build": "babel --copy-files --out-dir dist src",
"travis": "npm run precommit",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"travis": "npm run precommit"
},
"engines": {
"node": ">=6.0.0"
},
"repository": {

@@ -40,2 +41,5 @@ "type": "git",

"author": "Matt Steele <matt@omnionline.us> (http://omnionline.us)",
"contributors": [
"Viktor Hubert <rpgmorpheus@gmail.com> (https://hubertviktor.com)"
],
"license": "MIT",

@@ -47,21 +51,11 @@ "bugs": {

"devDependencies": {
"babel-cli": "^6.10.1",
"babel-eslint": "^7.2.3",
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"chai": "^4.0.2",
"commitizen": "^2.8.2",
"cz-conventional-changelog": "^2.0.0",
"esdoc": "^0.5.2",
"mocha": "^3.4.1",
"nyc": "^11.0.1",
"rimraf": "^2.5.2",
"semantic-release": "^6.3.6",
"standard": "^10.0.2"
"commitizen": "^4.0.0",
"cz-conventional-changelog": "^3.0.0",
"jsdoc": "^3.6.3",
"mocha": "^5.0.0",
"nyc": "^14.1.0",
"rimraf": "^3.0.0",
"standard": "^13.0.1"
},
"files": [
"dist",
"src",
"README.md"
],
"config": {

@@ -72,16 +66,7 @@ "commitizen": {

},
"standard": {
"parser": "babel-eslint",
"ignore": "/dist/"
},
"babel": {
"presets": [
"es2015"
]
},
"nyc": {
"include": [
"src/**/*.js"
"json-truncate.js"
]
}
}
}

@@ -19,3 +19,3 @@ # json-truncate

If you need to write data to a file or output an object to an api endpoint that has circular references I recommend you give `json-trucnate` a try.
If you need to write data to a file or output an object to an api endpoint that has circular references I recommend you give `json-truncate` a try.

@@ -42,8 +42,2 @@ By removing deeply nested data to maintain simple copies of the circular references you can keep most of the data you might be interested in.

or es6 import
```javascript
import JSONTruncate from 'json-truncate'
```
#### Usage

@@ -50,0 +44,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc