layaair2-cmd
Version:
layaair version 2 toolkit
113 lines (112 loc) • 5.18 kB
JSON
{
"_args": [
[
{
"raw": "umd@^3.0.0",
"scope": null,
"escapedName": "umd",
"name": "umd",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browser-pack"
]
],
"_from": "umd@>=3.0.0 <4.0.0",
"_id": "umd@3.0.3",
"_inCache": true,
"_location": "/umd",
"_nodeVersion": "8.10.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/umd_3.0.3_1521110302276_0.2838262381797878"
},
"_npmUser": {
"name": "forbeslindesay",
"email": "forbes@lindesay.co.uk"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "umd@^3.0.0",
"scope": null,
"escapedName": "umd",
"name": "umd",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/browser-pack"
],
"_resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz",
"_shasum": "aa9fe653c42b9097678489c01000acb69f0b26cf",
"_shrinkwrap": null,
"_spec": "umd@^3.0.0",
"_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browser-pack",
"author": {
"name": "ForbesLindesay"
},
"bin": {
"umd": "./bin/cli.js"
},
"bugs": {
"url": "https://github.com/ForbesLindesay/umd/issues"
},
"dependencies": {},
"description": "Universal Module Definition for use in automated build systems",
"devDependencies": {
"brfs": "^1.3.0",
"linify": "^1.0.1",
"mocha": "*",
"uglify-js": "^3.3.15"
},
"directories": {},
"dist": {
"integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==",
"shasum": "aa9fe653c42b9097678489c01000acb69f0b26cf",
"tarball": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz",
"fileCount": 6,
"unpackedSize": 9288
},
"files": [
"index.js",
"bin/cli.js"
],
"gitHead": "9aa85b63ef4e6809dc9f0f9993a574919ef20e7a",
"homepage": "https://github.com/ForbesLindesay/umd#readme",
"license": "MIT",
"maintainers": [
{
"name": "forbeslindesay",
"email": "forbes@lindesay.co.uk"
},
{
"name": "jazz",
"email": "jazzzz@gmail.com"
},
{
"name": "ralphtheninja",
"email": "ralphtheninja@riseup.net"
},
{
"name": "zertosh",
"email": "zertosh@gmail.com"
}
],
"name": "umd",
"optionalDependencies": {},
"readme": "# umd\n<img src=\"http://i.imgur.com/ypw29XY.png\" align=\"right\"/>\n\nUniversal Module Definition for use in automated build systems\n\n - simple synchronous wrapping of a string\n - `return` style module support\n - CommonJS support\n - prevents internal UMDs from conflicting\n\n[](https://travis-ci.org/ForbesLindesay/umd)\n[](https://david-dm.org/ForbesLindesay/umd)\n[](https://www.npmjs.com/package/umd)\n\n## Source Format\n\nIn order for the UMD wrapper to work the source code for your module should `return` the export, e.g.\n\n```javascript\nfunction method() {\n //code\n}\nmethod.helper = function () {\n //code\n}\nreturn method;\n```\n\nFor examples, see the examples directory. The CommonJS module format is also supported by passing true as the second argument to methods.\n\n## API\n\noptions:\n\n - `commonJS` (default: `false`) - If commonJS is `true` then it will accept CommonJS source instead of source code which `return`s the module.\n\n### umd(name, source, [options])\n\n The `name` should the the name of the module. Use a string like name, all lower case with hyphens instead of spaces.\n\n If `source` should be a string, that is wrapped in umd and returned as a string.\n\n### umd.prelude(module, [options])\n\n return the text which will be inserted before a module.\n\n### umd.postlude(module, [options])\n\n return the text which will be inserted after a module.\n\n## Command Line\n\n```\nUsage: umd <name> <source> <destination> [options]\n\nPipe Usage: umd <name> [options] < source > destination\n\nOptions:\n\n -h --help Display usage information\n -c --commonJS Use CommonJS module format\n ```\n\n You can easilly pipe unix commands together like:\n\n ```js\n cat my-module.js | umd my-module | uglify-js > my-module.umd.min.js\n ```\n\n## Name Casing and Characters\n\nThe `name` passed to `umd` will be converted to camel case (`my-library` becomes `myLibrary`) and may only contain:\n\n* alphanumeric characters\n* $\n* _\n\nThe name may not begin with a number. Invalid characters will be stripped. \n\n## License\n\n MIT\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/ForbesLindesay/umd.git"
},
"scripts": {
"build": "uglifyjs template.js > template.min.js && brfs source.js > index.js",
"prepublish": "npm run build && linify transform bin",
"test": "npm run build && mocha -R spec"
},
"version": "3.0.3"
}