UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

113 lines (112 loc) 6.19 kB
{ "_args": [ [ { "raw": "inline-source-map@~0.6.0", "scope": null, "escapedName": "inline-source-map", "name": "inline-source-map", "rawSpec": "~0.6.0", "spec": ">=0.6.0 <0.7.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\combine-source-map" ] ], "_from": "inline-source-map@>=0.6.0 <0.7.0", "_id": "inline-source-map@0.6.2", "_inCache": true, "_location": "/inline-source-map", "_nodeVersion": "5.10.1", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/inline-source-map-0.6.2.tgz_1460525282705_0.553636197000742" }, "_npmUser": { "name": "zertosh", "email": "zertosh@gmail.com" }, "_npmVersion": "3.8.3", "_phantomChildren": {}, "_requested": { "raw": "inline-source-map@~0.6.0", "scope": null, "escapedName": "inline-source-map", "name": "inline-source-map", "rawSpec": "~0.6.0", "spec": ">=0.6.0 <0.7.0", "type": "range" }, "_requiredBy": [ "/combine-source-map" ], "_resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", "_shasum": "f9393471c18a79d1724f863fa38b586370ade2a5", "_shrinkwrap": null, "_spec": "inline-source-map@~0.6.0", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\combine-source-map", "author": { "name": "Thorsten Lorenz", "email": "thlorenz@gmx.de", "url": "http://thlorenz.com" }, "bugs": { "url": "https://github.com/thlorenz/inline-source-map/issues" }, "dependencies": { "source-map": "~0.5.3" }, "description": "Adds source mappings and base64 encodes them, so they can be inlined in your generated file.", "devDependencies": { "nave": "~0.5.0", "tap": "~0.7.0" }, "directories": {}, "dist": { "shasum": "f9393471c18a79d1724f863fa38b586370ade2a5", "tarball": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz" }, "engine": { "node": ">=0.6" }, "gitHead": "c1a5b0c471bd8eee62bc8d4d2ec59a7439059f75", "homepage": "https://github.com/thlorenz/inline-source-map", "keywords": [ "source", "map", "inline", "base64", "bundle", "generate", "transpile" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "thlorenz", "email": "thlorenz@gmx.de" }, { "name": "zertosh", "email": "zertosh@gmail.com" } ], "name": "inline-source-map", "optionalDependencies": {}, "readme": "# inline-source-map [![build status](https://secure.travis-ci.org/thlorenz/inline-source-map.png)](http://travis-ci.org/thlorenz/inline-source-map)\n\nAdds source mappings and base64 encodes them, so they can be inlined in your generated file.\n\n```js\nvar generator = require('inline-source-map');\n\n// default charset 'utf-8' is configurable\nvar gen = generator({ charset: 'utf-8' }) \n .addMappings('foo.js', [{ original: { line: 2, column: 3 } , generated: { line: 5, column: 10 } }], { line: 5 })\n .addGeneratedMappings('bar.js', 'var a = 2;\\nconsole.log(a)', { line: 23, column: 22 });\n\nconsole.log('base64 mapping:', gen.base64Encode());\nconsole.log('inline mapping url:', gen.inlineMappingUrl());\n```\n\n```\nbase64 mapping: eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O1VBQ0c7Ozs7Ozs7Ozs7Ozs7O3NCQ0RIO3NCQUNBIn0=\ninline mapping url: //@ sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O1VBQ0c7Ozs7Ozs7Ozs7Ozs7O3NCQ0RIO3NCQUNBIn0=\n```\n\n## API\n\n### addMappings(sourceFile, mappings, offset)\n\n```\n/**\n * Adds the given mappings to the generator and offsets them if offset is given \n *\n * @name addMappings\n * @function\n * @param sourceFile {String} name of the source file\n * @param mappings {Array{{Object}} each object has the form { original: { line: _, column: _ }, generated: { line: _, column: _ } }\n * @param offset {Object} offset to apply to each mapping. Has the form { line: _, column: _ }\n * @return {Object} the generator to allow chaining\n */\n```\n\n### addGeneratedMappings(sourceFile, source, offset)\n\n```\n/**\n * Generates mappings for the given source and adds them, assuming that no translation from original to generated is necessary.\n *\n * @name addGeneratedMappings\n * @function\n * @param sourceFile {String} name of the source file\n * @param source {String} source of the file\n * @param offset {Object} offset to apply to each mapping. Has the form { line: _, column: _ }\n * @return {Object} the generator to allow chaining\n */\n```\n\n### addSourceContent(sourceFile, sourceContent)\n\n```\n/**\n * Adds source content for the given source file.\n * \n * @name addSourceContent\n * @function\n * @param sourceFile {String} The source file for which a mapping is included\n * @param sourceContent {String} The content of the source file\n * @return {Object} The generator to allow chaining\n */\n```\n\n\n### base64Encode()\n\n```\n/**\n * @name base64Encode\n * @function\n * @return {String} bas64 encoded representation of the added mappings\n */\n```\n\nIf source contents were added, this will be included in the encoded mappings.\n\n### inlineMappingUrl()\n\n```\n/**\n * @name inlineMappingUrl\n * @function\n * @return {String} comment with base64 encoded representation of the added mappings. Can be inlined at the end of the generated file. \n */\n```\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/thlorenz/inline-source-map.git" }, "scripts": { "test": "if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi", "test-0.10": "nave use 0.10 npm run test-main", "test-0.12": "nave use 0.12 npm run test-main", "test-0.8": "nave use 0.8 npm run test-main", "test-all": "npm run test-main && npm run test-0.8 && npm run test-0.10 && npm run test-0.12", "test-main": "tap test/*.js" }, "version": "0.6.2" }