layaair2-cmd
Version:
layaair version 2 toolkit
107 lines (106 loc) • 4.94 kB
JSON
{
"_args": [
[
{
"raw": "deps-sort@^2.0.0",
"scope": null,
"escapedName": "deps-sort",
"name": "deps-sort",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify"
]
],
"_from": "deps-sort@>=2.0.0 <3.0.0",
"_id": "deps-sort@2.0.0",
"_inCache": true,
"_location": "/deps-sort",
"_nodeVersion": "4.1.2",
"_npmUser": {
"name": "zertosh",
"email": "zertosh@gmail.com"
},
"_npmVersion": "2.14.4",
"_phantomChildren": {},
"_requested": {
"raw": "deps-sort@^2.0.0",
"scope": null,
"escapedName": "deps-sort",
"name": "deps-sort",
"rawSpec": "^2.0.0",
"spec": ">=2.0.0 <3.0.0",
"type": "range"
},
"_requiredBy": [
"/browserify"
],
"_resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz",
"_shasum": "091724902e84658260eb910748cccd1af6e21fb5",
"_shrinkwrap": null,
"_spec": "deps-sort@^2.0.0",
"_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bin": {
"deps-sort": "bin/cmd.js"
},
"bugs": {
"url": "https://github.com/substack/deps-sort/issues"
},
"dependencies": {
"JSONStream": "^1.0.3",
"shasum": "^1.0.0",
"subarg": "^1.0.0",
"through2": "^2.0.0"
},
"description": "sort module-deps output for deterministic browserify bundles",
"devDependencies": {
"tap": "^2.2.0"
},
"directories": {},
"dist": {
"shasum": "091724902e84658260eb910748cccd1af6e21fb5",
"tarball": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.0.tgz"
},
"gitHead": "dfbda1ac04b03cb694991b93e7f961011403771c",
"homepage": "https://github.com/substack/deps-sort",
"keywords": [
"dependency",
"graph",
"browser",
"browserify",
"module-deps",
"browser-pack",
"sorted",
"determinism"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "substack",
"email": "substack@gmail.com"
},
{
"name": "zertosh",
"email": "zertosh@gmail.com"
}
],
"name": "deps-sort",
"optionalDependencies": {},
"readme": "# deps-sort\n\nsort [module-deps](https://npmjs.org/package/module-deps) output for deterministic\nbrowserify bundles\n\n[](http://travis-ci.org/substack/deps-sort)\n\n# example\n\n## command-line\n\n```\n$ for((i=0;i<5;i++)); do module-deps main.js | deps-sort | browser-pack | md5sum; done\ne9e630de2c62953140357db0444c3c3a -\ne9e630de2c62953140357db0444c3c3a -\ne9e630de2c62953140357db0444c3c3a -\ne9e630de2c62953140357db0444c3c3a -\ne9e630de2c62953140357db0444c3c3a -\n```\n\nor using `browserify --deps` on a [voxeljs](http://voxeljs.com/) project:\n\n```\n$ for((i=0;i<5;i++)); do browserify --deps browser.js | deps-sort | browser-pack | md5sum; done\nfb418c74b53ba2e4cef7d01808b848e6 -\nfb418c74b53ba2e4cef7d01808b848e6 -\nfb418c74b53ba2e4cef7d01808b848e6 -\nfb418c74b53ba2e4cef7d01808b848e6 -\nfb418c74b53ba2e4cef7d01808b848e6 -\n```\n\n## api\n\nTo use this module programmatically, write streaming object data and read\nstreaming object data:\n\n``` js\nvar sort = require('../')();\nvar JSONStream = require('JSONStream');\nvar parse = JSONStream.parse([ true ]);\nvar stringify = JSONStream.stringify();\n\nprocess.stdin.pipe(parse).pipe(sort).pipe(stringify).pipe(process.stdout);\n```\n\n# methods\n\n``` js\nvar depsSort = require('deps-sort');\n```\n\n## var stream = depsSort(opts)\n\nReturn a new through `stream` that should get written\n[module-deps](https://npmjs.org/package/module-deps) objects and will output\nsorted objects.\n\n`opts` can be:\n\n* `opts.index` - when true, for each module-deps row, insert `row.index` with\nthe numeric index and `row.indexDeps` like `row.deps` but mapping require\nstrings to row indices\n\n* `opts.expose` - array of names or object mapping names to `true` not to mangle\nwith integer indexes when `opts.index` is turned on. If `opts.expose` maps names\nto strings, those strings will be used to resolve the indexed references.\n\n* `opts.dedupe` - set `row.dedupe` for files that match existing contents. Sets\n`row.dedupeIndex` when `opts.index` is enabled. When `row.dedupe` is set,\n`row.sameDeps` will be set to a boolean of whether the dependencies at the\ndedupe target match (true) or just the source content (false).\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install deps-sort\n```\n\n# license\n\nMIT\n",
"readmeFilename": "readme.markdown",
"repository": {
"type": "git",
"url": "git://github.com/substack/deps-sort.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "2.0.0"
}