UNPKG

3.2 kBJSONView Raw
1{
2 "name": "yaml",
3 "version": "2.6.0",
4 "license": "ISC",
5 "author": "Eemeli Aro <eemeli@gmail.com>",
6 "repository": "github:eemeli/yaml",
7 "description": "JavaScript parser and stringifier for YAML",
8 "keywords": [
9 "YAML",
10 "parser",
11 "stringifier"
12 ],
13 "homepage": "https://eemeli.org/yaml/",
14 "files": [
15 "browser/",
16 "dist/",
17 "util.js"
18 ],
19 "type": "commonjs",
20 "main": "./dist/index.js",
21 "bin": "./bin.mjs",
22 "browser": {
23 "./dist/index.js": "./browser/index.js",
24 "./dist/util.js": "./browser/dist/util.js",
25 "./util.js": "./browser/dist/util.js"
26 },
27 "exports": {
28 ".": {
29 "types": "./dist/index.d.ts",
30 "node": "./dist/index.js",
31 "default": "./browser/index.js"
32 },
33 "./package.json": "./package.json",
34 "./util": {
35 "types": "./dist/util.d.ts",
36 "node": "./dist/util.js",
37 "default": "./browser/dist/util.js"
38 }
39 },
40 "scripts": {
41 "build": "npm run build:node && npm run build:browser",
42 "build:browser": "rollup -c config/rollup.browser-config.mjs",
43 "build:node": "rollup -c config/rollup.node-config.mjs",
44 "clean": "git clean -fdxe node_modules",
45 "lint": "eslint config/ src/",
46 "prettier": "prettier --write .",
47 "prestart": "rollup --sourcemap -c config/rollup.node-config.mjs",
48 "start": "node --enable-source-maps -i -e 'YAML=require(\"./dist/index.js\");const{parse,parseDocument,parseAllDocuments}=YAML'",
49 "test": "jest --config config/jest.config.js",
50 "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types",
51 "test:browsers": "cd playground && npm test",
52 "test:dist": "npm run build:node && jest --config config/jest.config.js",
53 "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/index.js",
54 "test:types": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json",
55 "docs:install": "cd docs-slate && bundle install",
56 "predocs:deploy": "node docs/prepare-docs.mjs",
57 "docs:deploy": "cd docs-slate && ./deploy.sh",
58 "predocs": "node docs/prepare-docs.mjs",
59 "docs": "cd docs-slate && bundle exec middleman server",
60 "preversion": "npm test && npm run build",
61 "prepublishOnly": "npm run clean && npm test && npm run build"
62 },
63 "browserslist": "defaults, not ie 11",
64 "prettier": {
65 "arrowParens": "avoid",
66 "semi": false,
67 "singleQuote": true,
68 "trailingComma": "none"
69 },
70 "devDependencies": {
71 "@babel/core": "^7.12.10",
72 "@babel/plugin-transform-typescript": "^7.12.17",
73 "@babel/preset-env": "^7.12.11",
74 "@eslint/js": "^9.9.1",
75 "@rollup/plugin-babel": "^6.0.3",
76 "@rollup/plugin-replace": "^5.0.2",
77 "@rollup/plugin-typescript": "^11.0.0",
78 "@types/jest": "^29.2.4",
79 "@types/node": "^20.11.20",
80 "babel-jest": "^29.0.1",
81 "cross-env": "^7.0.3",
82 "eslint": "^9.9.1",
83 "eslint-config-prettier": "^9.0.0",
84 "fast-check": "^2.12.0",
85 "jest": "^29.0.1",
86 "jest-ts-webcompat-resolver": "^1.0.0",
87 "prettier": "^3.0.2",
88 "rollup": "^4.12.0",
89 "tslib": "^2.1.0",
90 "typescript": "^5.0.3",
91 "typescript-eslint": "^8.4.0"
92 },
93 "engines": {
94 "node": ">= 14"
95 }
96}