UNPKG

@pardnchiu/nanojson

Version:

A lightweight JSON editor built with pure JavaScript and native APIs. It features visual editing, dynamic type switching, and file import/export capabilities. Suitable for website embedding and JSON data editing.

58 lines 2.08 kB
{ "name": "@pardnchiu/nanojson", "version": "1.1.6", "description": "A lightweight JSON editor built with pure JavaScript and native APIs. It features visual editing, dynamic type switching, and file import/export capabilities. Suitable for website embedding and JSON data editing.", "main": "dist/NanoJSON.js", "module": "dist/NanoJSON.esm.js", "types": "src/interface.ts", "scripts": { "build:debug": "npx terser src/*.js src/**/*.js -o dist/NanoJSON.debug.js", "build:min": "npx terser src/*.js src/**/*.js -c -m -o dist/NanoJSON.js --config-file terser.config.json --name-cache terser.cache.json", "build:esm": "npx terser src/*.js src/**/*.js -c -m -o dist/NanoJSON.esm.js --config-file terser.config.json --name-cache terser.cache.json && echo 'export const JSONEditor = window.JSONEditor;' >> dist/NanoJSON.esm.js", "build:once": "npm-run-all build:debug build:min build:esm", "build": "chokidar src/*.js src/**/*.js src/**/**/*.js -c 'npm run build:once'", "sass:library": "sass src/sass:dist/ -w --style compressed --no-source-map", "sass:index": "sass static/sass/:static/css/ -w --style compressed --no-source-map", "sass": "npm-run-all sass:library sass:index" }, "publishConfig": { "access": "public" }, "files": [ "dist", "!dist/NanoJSON.debug.js", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "https://github.com/pardnchiu/NanoJSON.git" }, "keywords": [ "json", "json-editor", "javascript-library", "pure-javascript", "native-api", "vanilla-js", "邱敬幃", "pardnchiu" ], "author": { "name": "邱敬幃 Pardn Chiu", "email": "dev@pardn.io", "url": "https://github.com/pardnchiu" }, "license": "MIT", "bugs": { "url": "https://github.com/pardnchiu/NanoJSON/issues", "email": "dev@pardn.io" }, "homepage": "https://github.com/pardnchiu/NanoJSON#readme", "devDependencies": { "chokidar-cli": "3.0.0", "npm-run-all": "^4.1.5", "sass": "1.62.0", "terser": "5.31.3" } }