typeson
Version:
Preserves types over JSON, BSON or socket.io
95 lines • 2.82 kB
JSON
{
"name": "typeson",
"version": "9.0.4",
"description": "Preserves types over JSON, BSON or socket.io",
"main": "./dist/typeson-commonjs2.min.cjs",
"browser": "./dist/typeson.umd.js",
"module": "./dist/typeson.esm.js",
"type": "module",
"types": "./dist/typeson.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.esm.min.js"
},
"require": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.cjs"
},
"browser": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.umd.min.js"
}
}
},
"c8": {
"exclude": [
"test/**",
"node_modules/**"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/dfahlander/typeson.git"
},
"browserslist": [
"cover 100%"
],
"keywords": [
"JSON",
"remoting",
"serialization",
"types"
],
"author": "dfahlander",
"contributors": [
"Brett Zamir"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/dfahlander/typeson/issues"
},
"homepage": "https://github.com/dfahlander/typeson#readme",
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "^7.27.4",
"@babel/preset-env": "^7.27.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/babel__core": "^7.20.5",
"@types/chai": "^5.2.2",
"@types/mocha": "^10.0.10",
"@types/node": "^24.0.1",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"base64-arraybuffer-es6": "^3.1.0",
"c8": "^10.1.3",
"chai": "^5.2.0",
"eslint": "^9.28.0",
"eslint-config-ash-nazg": "38.0.0",
"http-server": "^14.1.1",
"mocha": "^11.6.0",
"open-cli": "^8.0.0",
"rollup": "4.43.0",
"rollup-plugin-re": "^1.0.7",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.0"
},
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson().register(require('typeson-registry/presets/builtin'));\n\nTSON.stringify({foo: new Date()}, null, 2);",
"scripts": {
"tsc": "tsc",
"eslint": "eslint .",
"lint": "npm run eslint --",
"start": "http-server -p 8092",
"rollup": "rollup -c",
"build": "npm run rollup && tsc -p tsconfig-build.json",
"open-test": "open-cli http://localhost:8092/test/ && npm start",
"browser-test": "npm run build && npm run eslint && npm run open-test",
"open-coverage": "open-cli http://localhost:8092/coverage/ && npm start",
"mocha": "mocha --require chai/register-assert.js --require chai/register-expect.js test/test.js",
"c8": "rm -Rf node_modules/.cache && c8 --reporter=html --reporter=text npm run mocha",
"test": "npm run build && npm run eslint && npm run c8"
}
}