130 lines
13 KiB
JSON
130 lines
13 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "js-yaml@^3.7.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "js-yaml",
|
||
|
"name": "js-yaml",
|
||
|
"rawSpec": "^3.7.0",
|
||
|
"spec": ">=3.7.0 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/istanbul-api"
|
||
|
]
|
||
|
],
|
||
|
"_from": "js-yaml@>=3.7.0 <4.0.0",
|
||
|
"_id": "js-yaml@3.10.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/js-yaml",
|
||
|
"_nodeVersion": "8.4.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "s3://npm-registry-packages",
|
||
|
"tmp": "tmp/js-yaml-3.10.0.tgz_1505117951321_0.05147904600016773"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "vitaly",
|
||
|
"email": "vitaly@rcdesign.ru"
|
||
|
},
|
||
|
"_npmVersion": "5.3.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "js-yaml@^3.7.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "js-yaml",
|
||
|
"name": "js-yaml",
|
||
|
"rawSpec": "^3.7.0",
|
||
|
"spec": ">=3.7.0 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/istanbul-api"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz",
|
||
|
"_shasum": "2e78441646bd4682e963f22b6e92823c309c62dc",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "js-yaml@^3.7.0",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/istanbul-api",
|
||
|
"author": {
|
||
|
"name": "Vladimir Zapparov",
|
||
|
"email": "dervus.grim@gmail.com"
|
||
|
},
|
||
|
"bin": {
|
||
|
"js-yaml": "bin/js-yaml.js"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/nodeca/js-yaml/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Aleksey V Zapparov",
|
||
|
"email": "ixti@member.fsf.org",
|
||
|
"url": "http://www.ixti.net/"
|
||
|
},
|
||
|
{
|
||
|
"name": "Vitaly Puzrin",
|
||
|
"email": "vitaly@rcdesign.ru",
|
||
|
"url": "https://github.com/puzrin"
|
||
|
},
|
||
|
{
|
||
|
"name": "Martin Grenfell",
|
||
|
"email": "martin.grenfell@gmail.com",
|
||
|
"url": "http://got-ravings.blogspot.com"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"argparse": "^1.0.7",
|
||
|
"esprima": "^4.0.0"
|
||
|
},
|
||
|
"description": "YAML 1.2 parser and serializer",
|
||
|
"devDependencies": {
|
||
|
"ansi": "^0.3.1",
|
||
|
"benchmark": "^2.1.4",
|
||
|
"browserify": "^14.3.0",
|
||
|
"codemirror": "^5.13.4",
|
||
|
"eslint": "^4.1.1",
|
||
|
"istanbul": "^0.4.5",
|
||
|
"mocha": "^3.3.0",
|
||
|
"uglify-js": "^3.0.1"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==",
|
||
|
"shasum": "2e78441646bd4682e963f22b6e92823c309c62dc",
|
||
|
"tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz"
|
||
|
},
|
||
|
"files": [
|
||
|
"index.js",
|
||
|
"lib/",
|
||
|
"bin/",
|
||
|
"dist/"
|
||
|
],
|
||
|
"gitHead": "42e7fcccf10c74fe157b1f8eb9d73c1c25c3c259",
|
||
|
"homepage": "https://github.com/nodeca/js-yaml",
|
||
|
"keywords": [
|
||
|
"yaml",
|
||
|
"parser",
|
||
|
"serializer",
|
||
|
"pyyaml"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "vitaly",
|
||
|
"email": "vitaly@rcdesign.ru"
|
||
|
}
|
||
|
],
|
||
|
"name": "js-yaml",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "JS-YAML - YAML 1.2 parser / writer for JavaScript\n=================================================\n\n[![Build Status](https://travis-ci.org/nodeca/js-yaml.svg?branch=master)](https://travis-ci.org/nodeca/js-yaml)\n[![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml)\n\n__[Online Demo](http://nodeca.github.com/js-yaml/)__\n\n\nThis is an implementation of [YAML](http://yaml.org/), a human-friendly data\nserialization language. Started as [PyYAML](http://pyyaml.org/) port, it was\ncompletely rewritten from scratch. Now it's very fast, and supports 1.2 spec.\n\n\nInstallation\n------------\n\n### YAML module for node.js\n\n```\nnpm install js-yaml\n```\n\n\n### CLI executable\n\nIf you want to inspect your YAML files from CLI, install js-yaml globally:\n\n```\nnpm install -g js-yaml\n```\n\n#### Usage\n\n```\nusage: js-yaml [-h] [-v] [-c] [-t] file\n\nPositional arguments:\n file File with YAML document(s)\n\nOptional arguments:\n -h, --help Show this help message and exit.\n -v, --version Show program's version number and exit.\n -c, --compact Display errors in compact mode\n -t, --trace Show stack trace on error\n```\n\n\n### Bundled YAML library for browsers\n\n``` html\n<!-- esprima required only for !!js/function -->\n<script src=\"esprima.js\"></script>\n<script src=\"js-yaml.min.js\"></script>\n<script type=\"text/javascript\">\nvar doc = jsyaml.load('greeting: hello\\nname: world');\n</script>\n```\n\nBrowser support was done mostly for the online demo. If you find any errors - feel\nfree to send pull requests with fixes. Also note, that IE and other old browsers\nneeds [es5-shims](https://github.com/kriskowal/es5-shim) to operate.\n\nNotes:\n\n1. We have no resources to support browserified version. Don't expect it to be\n well tested. Don't expect fast fixes if something goes wrong there.\n2. `!!js/function` in browser bundle will not work by default. If you really need\n it - load `esprima` parser first (via amd or directly).\n3. `!!bin` in browser will return `Array`, because browsers do not support\n node.js `Buffer` and adding Buffer shims is completely useless on practice.\n\n\nAPI\n---\n\nHere we cover the most 'useful' methods. If you need advanced details (creating\nyour own tags), see [wiki](https://github.com/nodeca/js-yaml/wiki) and\n[examples](https://github.com/nodeca/js-yaml/tree/master/examples) for more\ninfo.\n\n``` javascript\nyaml = require('js-yaml');\nfs = require('fs');\n\n// Get document, or throw exception on error\ntry {\n var doc = yaml.safeLoad(fs.readFileSync('/home/ixti/example.yml', 'utf8'));\n console.log(doc);\n} catch (e) {\n console.log(e);\n}\n```\n\n\n### safeLoad (string [ , options ])\n\n**Recommended loading way.** Parses `string` as single YAML document. Returns a JavaScript\nobject or throws `YAMLException` on error. By default, does not support regexps,\nfunctions and undefined. This method is safe for untrusted data.\n\noptions:\n\n- `filename` _(default: null)_ - string to be used as a file path in\n error/warning messages.\n- `onWarning` _(default: null)_ - function to call on warning messages.\n Loader will throw on warnings if this function is not provided.\n- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ - specifies a schema to use.\n - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects:\n http://www.yaml.org/spec/1.2/spec.html#id2802346\n - `JSON_SCHEMA` - all JSON-supported types:\n http://www.yaml.org/spec/1.2/spec.html#id2803231\n - `CORE_SCHEMA` - same as `JSON_SCHEMA`:\n http://www.yaml.org/spec/1.2/spec.html#id2804923\n - `DEFAULT_SAFE_SCHEMA` - all supported YAML types, without unsafe ones\n (`!!js/undefined`, `!!js/regexp` and `!!js/function`):\n http://yaml.org/type/\n - `DEFAULT_FULL_SCHEMA` - all supported YAML types.\n- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error.\n\nNOTE: This function **does not** understand multi
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/nodeca/js-yaml.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "make test"
|
||
|
},
|
||
|
"version": "3.10.0"
|
||
|
}
|