truncate-json
Version:
Truncate a JSON string
71 lines (70 loc) • 1.53 kB
JSON
{
"name": "truncate-json",
"version": "3.0.1",
"type": "module",
"exports": {
"types": "./build/src/main.d.ts",
"default": "./build/src/main.js"
},
"main": "./build/src/main.js",
"types": "./build/src/main.d.ts",
"files": [
"build/src/**/*.{js,json,d.ts}",
"!build/src/**/*.test.js",
"!build/src/{helpers,fixtures}"
],
"sideEffects": false,
"scripts": {
"test": "gulp test"
},
"description": "Truncate a JSON string",
"keywords": [
"javascript",
"json",
"json-parser",
"length",
"library",
"limit",
"maximum",
"nodejs",
"parse",
"parsing",
"serialization",
"serialize",
"shortener",
"size",
"size-calculation",
"string",
"stringify",
"truncate",
"types",
"typescript"
],
"license": "MIT",
"homepage": "https://www.github.com/ehmicky/truncate-json",
"repository": {
"type": "git",
"url": "git+https://github.com/ehmicky/truncate-json.git"
},
"bugs": {
"url": "https://github.com/ehmicky/truncate-json/issues"
},
"author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
"directories": {
"lib": "src"
},
"dependencies": {
"guess-json-indent": "^3.0.1",
"string-byte-length": "^3.0.1",
"string-byte-slice": "^3.0.1"
},
"devDependencies": {
"@ehmicky/dev-tasks": "^3.0.33",
"@ehmicky/eslint-config": "^20.0.31",
"@ehmicky/prettier-config": "^1.0.6",
"test-each": "^7.0.1"
},
"engines": {
"node": ">=18.18.0"
}
}