UNPKG

lossless-json

Version:

Parse JSON without risk of losing numeric information

90 lines (89 loc) 2.67 kB
{ "name": "lossless-json", "version": "4.1.1", "description": "Parse JSON without risk of losing numeric information", "main": "lib/umd/lossless-json.js", "module": "lib/esm/index.js", "browser": "lib/umd/lossless-json.js", "types": "lib/types/index.d.ts", "sideEffects": false, "exports": { ".": { "import": "./lib/esm/index.js", "require": "./lib/umd/lossless-json.js", "types": "./lib/types/index.d.ts" } }, "repository": { "type": "git", "url": "https://github.com/josdejong/lossless-json.git" }, "scripts": { "test": "vitest watch src", "test-ci": "vitest run src", "lint": "biome check", "format": "biome check --write", "build": "npm-run-all build:**", "build:clean": "del-cli lib", "build:esm": "babel src --out-dir lib/esm --extensions \".ts\" --source-maps --config-file ./babel.config.json", "build:esm:cpy": "cpy tools/esm/package.json lib/esm --flat", "build:umd": "rollup --config rollup.config.mjs", "build:umd:cpy": "cpy tools/cjs/package.json lib/umd --flat", "build:types": "tsc --project tsconfig-types.json", "build:validate": "vitest run test-lib", "build-and-test": "npm run test-ci && npm run lint && npm run build", "release": "npm-run-all release:**", "release:build-and-test": "npm run build-and-test", "release:version": "standard-version", "release:push": "git push && git push --tag", "release:publish": "npm publish", "release-dry-run": "npm run build-and-test && standard-version --dry-run", "benchmark": "npm run build:esm && node tools/benchmark/run.mjs", "prepare": "husky" }, "keywords": [ "json", "lossless", "parse", "stringify", "long", "bigint", "bignumber", "number", "date", "safe" ], "author": "Jos de Jong", "license": "MIT", "devDependencies": { "@babel/cli": "7.27.2", "@babel/core": "7.27.1", "@babel/plugin-transform-typescript": "7.27.1", "@babel/preset-env": "7.27.2", "@babel/preset-typescript": "7.27.1", "@biomejs/biome": "1.9.4", "@commitlint/cli": "19.8.1", "@commitlint/config-conventional": "19.8.1", "@rollup/plugin-terser": "0.4.4", "@types/benchmark": "2.1.5", "@types/node": "22.15.19", "cpy-cli": "5.0.0", "decimal.js": "10.5.0", "del-cli": "6.0.0", "globals": "16.1.0", "husky": "9.1.7", "npm-run-all": "4.1.5", "rollup": "4.41.0", "standard-version": "9.5.0", "tinybench": "4.0.1", "typescript": "5.8.3", "vitest": "3.1.3" }, "files": [ "dist", "lib", "HISTORY.md", "LICENSE.md", "README.md" ] }