layaair2-cmd
Version:
layaair version 2 toolkit
165 lines (164 loc) • 10.6 kB
JSON
{
"_args": [
[
{
"raw": "interpret@^1.0.0",
"scope": null,
"escapedName": "interpret",
"name": "interpret",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\gulp"
]
],
"_from": "interpret@^1.0.0",
"_hasShrinkwrap": false,
"_id": "interpret@1.2.0",
"_location": "/interpret",
"_nodeVersion": "8.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/interpret_1.2.0_1545965767939_0.8163507059163111"
},
"_npmUser": {
"name": "phated",
"email": "blaine.bublitz@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "interpret@^1.0.0",
"scope": null,
"escapedName": "interpret",
"name": "interpret",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/gulp"
],
"_resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
"_shasum": "d5061a6224be58e8083985f5014d844359576296",
"_shrinkwrap": null,
"_spec": "interpret@^1.0.0",
"_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\gulp",
"author": {
"name": "Gulp Team",
"email": "team@gulpjs.com",
"url": "http://gulpjs.com/"
},
"bugs": {
"url": "https://github.com/gulpjs/interpret/issues"
},
"contributors": [
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com"
},
{
"name": "Tyler Kellen",
"email": "tyler@sleekcode.net",
"url": "http://goingslowly.com/"
}
],
"dependencies": {},
"description": "A dictionary of file extensions and associated module loaders.",
"devDependencies": {
"eslint": "^2.13.0",
"eslint-config-gulp": "^3.0.1",
"expect": "^1.20.2",
"istanbul": "^0.4.3",
"istanbul-coveralls": "^1.0.3",
"mocha": "^3.5.3",
"parse-node-version": "^1.0.0",
"rechoir": "^0.6.2",
"shelljs": "0.7.5"
},
"directories": {},
"dist": {
"integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
"shasum": "d5061a6224be58e8083985f5014d844359576296",
"tarball": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
"fileCount": 5,
"unpackedSize": 14509,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJZDICRA9TVsSAnZWagAA7fEP/2QAHYR2kbr5jIidWDhX\nrKevjdULBYlTRcqcCG5vP2elm09A4hscGK3ajM7ZAYHuMpe6Xa16SDUUjxyC\neNx9C7yaFFVjDZym6CLbntltltXMNRQmnkoJjHAl9nFk43WhqL7wr1oeT26H\nrd8e7iAyypJI8qHt+IsQQVj9Wvoz557FABUi2pc8z1wRW3oJTYPaGob29MPq\ne0ZSnOnzLt5fBP1lMBcBeNyAqZg6q8rzOpebJ1pdWU0AaNuxNJJIAZKANALa\n93Ga5B3mkq+utXH2gnC/AnRBB7Xct66m8XVzLwdsYuKAXRp5TdKu4OF3Sdb2\njW24vK7/CK8IMkEGyHP+rkdax4SYeusk8WpdplasIALeYxgJuXFn9Gu6OR5B\nhhL9AqJM82YP+0+tZROaGSXuQcFBd2F6xyAF9J118EihnB1go5xySk1tWUqB\n9VA3EP/oE076Fj5V0Shb4zssk2f4HrRpxJ8olavStgoc2BK4TseXxsTkyI1q\n3PPeY9icQ03thH9Ow/blx27psxGZIBdGqaR/juG7V/t8+xfJj8RVdyf2gvUh\nHVASE0a1Aw45aHBcH5AHE9UnxtkSAGGwA1R60mcQOh2BGCS55Qml2YqyNykL\noB30lCluwjCsn3jL+wV3UbBXvkKcLaIvBbrhGY7Eq540zFPjbdg7mkfeGIYe\nOOrU\r\n=ztpd\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">= 0.10"
},
"files": [
"LICENSE",
"index.js"
],
"gitHead": "cc274d7d70cfa79806dc98c2554b1bfa3d7eb95d",
"homepage": "https://github.com/gulpjs/interpret#readme",
"keywords": [
"cirru-script",
"cjsx",
"co",
"coco",
"coffee",
"coffee-script",
"coffee.md",
"coffeescript",
"csv",
"earlgrey",
"es",
"es6",
"iced",
"iced.md",
"iced-coffee-script",
"ini",
"js",
"json",
"json5",
"jsx",
"react",
"litcoffee",
"liticed",
"ls",
"livescript",
"toml",
"ts",
"typescript",
"wisp",
"xml",
"yaml",
"yml"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "contra",
"email": "yo@contra.io"
},
{
"name": "phated",
"email": "blaine.bublitz@gmail.com"
},
{
"name": "tkellen",
"email": "tyler@sleekcode.net"
}
],
"name": "interpret",
"optionalDependencies": {},
"readme": "<p align=\"center\">\n <a href=\"http://gulpjs.com\">\n <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n </a>\n</p>\n\n# interpret\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nA dictionary of file extensions and associated module loaders.\n\n## What is it\nThis is used by [Liftoff](http://github.com/tkellen/node-liftoff) to automatically require dependencies for configuration files, and by [rechoir](http://github.com/tkellen/node-rechoir) for registering module loaders.\n\n## API\n\n### extensions\nMap file types to modules which provide a [require.extensions] loader.\n\n```js\n{\n '.babel.js': [\n {\n module: '@babel/register',\n register: function(hook) {\n // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353\n // which only captures the final extension (.babel.js -> .js)\n hook({ extensions: '.js' });\n },\n },\n {\n module: 'babel-register',\n register: function(hook) {\n hook({ extensions: '.js' });\n },\n },\n {\n module: 'babel-core/register',\n register: function(hook) {\n hook({ extensions: '.js' });\n },\n },\n {\n module: 'babel/register',\n register: function(hook) {\n hook({ extensions: '.js' });\n },\n },\n ],\n '.babel.ts': [\n {\n module: '@babel/register',\n register: function(hook) {\n hook({ extensions: '.ts' });\n },\n },\n ],\n '.buble.js': 'buble/register',\n '.cirru': 'cirru-script/lib/register',\n '.cjsx': 'node-cjsx/register',\n '.co': 'coco',\n '.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],\n '.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],\n '.csv': 'require-csv',\n '.eg': 'earlgrey/register',\n '.esm.js': {\n module: 'esm',\n register: function(hook) {\n // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353\n // which only captures the final extension (.babel.js -> .js)\n var esmLoader = hook(module);\n require.extensions['.js'] = esmLoader('module')._extensions['.js'];\n },\n },\n '.iced': ['iced-coffee-script/register', 'iced-coffee-script'],\n '.iced.md': 'iced-coffee-script/register',\n '.ini': 'require-ini',\n '.js': null,\n '.json': null,\n '.json5': 'json5/lib/require',\n '.jsx': [\n {\n module: '@babel/register',\n register: function(hook) {\n hook({ extensions: '.jsx' });\n },\n },\n {\n module: 'babel-register',\n register: function(hook) {\n hook({ extensions: '.jsx' });\n },\n },\n {\n module: 'babel-core/register',\n register: function(hook) {\n hook({ extensions: '.jsx' });\n },\n },\n {\n module: 'babel/register',\n register: function(hook) {\n hook({ extensions: '.jsx' });\n },\n },\n {\n module: 'node-jsx',\n register: function(hook) {\n hook.install({ extension: '.jsx', harmony: true });\n },\n },\n ],\n '.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],\n '.liticed': 'iced-coffee-script/register',\n '.ls': ['livescript', 'LiveScript'],\n '.node': null,\n '.toml': {\n module: 'toml-require',\n register: function(hook) {\n hook.install();\n },\n },\n '.ts': [\n 'ts-node/register',\n 'typescript-node/register',\n 'typescript-register',\n 'typescript-require',\n {\n module: '@babel/register',\n register: function(hook) {\n hook({ extensions: '.ts' });\n },\n },\n ],\n '.tsx': [\n 'ts-node/register',\n 'typescript-node/register',\n {\n module: '@babel/register',\n register: function(hook) {\n hook({ extensions: '.tsx' });\n },\n },\n ],\n '.wisp': 'wisp/engine/node',\n '.xml': 'require-xml',\n '.yaml': 'require-yaml',\n '.yml': 'require-yaml',\n}\n```\n\n### jsVariants\nSame as above, but only include the extensions which are javascript variants.\n\n## How to use it\n\nConsumers should use the exported `extensions` or `jsVariants` object to determine which module should be loaded for a given extension. If a matching extension is found, consumers should do the following:\n\n1. If the value is null, do nothing.\n\n2. If the value is a string, try to require it.\n\n3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument.\n\n4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw.\n\n[require.extensions]: http://nodejs.org/api/globals.html#globals_require_extensions\n\n[downloads-image]: http://img.shields.io/npm/dm/interpret.svg\n[npm-url]: https://www.npmjs.com/package/interpret\n[npm-image]: http://img.shields.io/npm/v/interpret.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/interpret\n[travis-image]: http://img.shields.io/travis/gulpjs/interpret.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/interpret\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/interpret.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/interpret\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/interpret/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/gulpjs/interpret.git"
},
"scripts": {
"cover": "istanbul cover _mocha --report lcovonly",
"coveralls": "npm run cover && istanbul-coveralls",
"lint": "eslint .",
"pretest": "rm -rf tmp/ && npm run lint",
"test": "mocha --async-only"
},
"version": "1.2.0"
}