UNPKG

1.56 kBJSONView Raw
1{
2 "name": "json-from-script",
3 "version": "1.4.0",
4 "description": "Tiny JSON parser for your CSP aware script tags",
5 "license": "MIT",
6 "author": "Robin van der Vleuten <robin@webstronauts.co>",
7 "main": "dist/json-from-script.js",
8 "module": "dist/json-from-script.es.js",
9 "jsnext:main": "dist/json-from-script.es.js",
10 "umd:main": "dist/json-from-script.umd.js",
11 "keywords": [
12 "json",
13 "script",
14 "csp",
15 "security"
16 ],
17 "files": [
18 "dist",
19 "index.js"
20 ],
21 "scripts": {
22 "build": "microbundle",
23 "format": "prettier --single-quote --trailing-comma es5 --write '{src,test}/**/*.js'",
24 "precommit": "lint-staged --verbose",
25 "prepublish": "npm run build",
26 "test": "npm-run-all --parallel test:**",
27 "test:jest": "jest --env=jsdom",
28 "test:size": "bundlesize"
29 },
30 "lint-staged": {
31 "*.js": [
32 "prettier --single-quote --trailing-comma es5 --write",
33 "git add"
34 ]
35 },
36 "bundlesize": [
37 {
38 "path": "./dist/*.js",
39 "threshold": "300b"
40 }
41 ],
42 "repository": {
43 "type": "git",
44 "url": "git+https://github.com/robinvdvleuten/json-from-script.git"
45 },
46 "bugs": {
47 "url": "https://github.com/robinvdvleuten/json-from-script/issues"
48 },
49 "homepage": "https://github.com/robinvdvleuten/json-from-script#readme",
50 "devDependencies": {
51 "bundlesize": "^0.15.3",
52 "husky": "^0.13.3",
53 "jest": "^20.0.1",
54 "jest-in-case": "^1.0.2",
55 "lint-staged": "^3.4.1",
56 "microbundle": "^0.4.4",
57 "npm-run-all": "^4.1.1",
58 "prettier": "^1.3.1"
59 }
60}