{ "_args": [ [ { "raw": "jsmin-sourcemap@~0.16.0", "scope": null, "escapedName": "jsmin-sourcemap", "name": "jsmin-sourcemap", "rawSpec": "~0.16.0", "spec": ">=0.16.0 <0.17.0", "type": "range" }, "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/gulp-jsmin" ] ], "_from": "jsmin-sourcemap@>=0.16.0 <0.17.0", "_id": "jsmin-sourcemap@0.16.0", "_inCache": true, "_location": "/jsmin-sourcemap", "_npmUser": { "name": "twolfson", "email": "todd@twolfson.com" }, "_npmVersion": "1.3.11", "_phantomChildren": {}, "_requested": { "raw": "jsmin-sourcemap@~0.16.0", "scope": null, "escapedName": "jsmin-sourcemap", "name": "jsmin-sourcemap", "rawSpec": "~0.16.0", "spec": ">=0.16.0 <0.17.0", "type": "range" }, "_requiredBy": [ "/gulp-jsmin" ], "_resolved": "https://registry.npmjs.org/jsmin-sourcemap/-/jsmin-sourcemap-0.16.0.tgz", "_shasum": "d59e88a1b73bba670fc3b398cd9f967f4bfcccaa", "_shrinkwrap": null, "_spec": "jsmin-sourcemap@~0.16.0", "_where": "/mnt/Data/bach/Sites/clameurs.org/sites/all/themes/figureslibres/clameurs/node_modules/gulp-jsmin", "author": { "name": "Todd Wolfson", "email": "todd@twolfson.com", "url": "http://twolfson.com/" }, "bugs": { "url": "https://github.com/twolfson/node-jsmin-sourcemap/issues" }, "dependencies": { "jsmin2": "~1.1.1", "source-map-index-generator": "~0.1.1" }, "description": "JSMin with sourcemaps!", "devDependencies": { "char-props": "~0.1.3", "grunt": "~0.3.12", "mocha": "~1.15.1", "source-map": "~0.1.8" }, "directories": {}, "dist": { "shasum": "d59e88a1b73bba670fc3b398cd9f967f4bfcccaa", "tarball": "https://registry.npmjs.org/jsmin-sourcemap/-/jsmin-sourcemap-0.16.0.tgz" }, "homepage": "https://github.com/twolfson/node-jsmin-sourcemap", "keywords": [ "jsmin", "sourcemap", "source map", "minify" ], "licenses": [ { "type": "UNLICENSE", "url": "https://github.com/twolfson/node-jsmin-sourcemap/blob/master/UNLICENSE" } ], "main": "lib/jsmin.sourcemap.js", "maintainers": [ { "name": "twolfson", "email": "todd@twolfson.com" } ], "name": "jsmin-sourcemap", "optionalDependencies": {}, "readme": "# node-jsmin-sourcemap [![Build status](https://travis-ci.org/Ensighten/grunt-spritesmith.png?branch=master)](https://travis-ci.org/Ensighten/grunt-spritesmith)\n\nJSMin with sourcemaps!\n\nAlso available as a [grunt plugin](https://github.com/twolfson/grunt-jsmin-sourcemap)!\n\n## Synopsis\n[JSMin](http://www.crockford.com/javascript/jsmin.html) is a JavaScript minifier that removes whitespace and comments.\n\n[Source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) enables developers to view and interact with minified JavaScript as if it were unminified (providing useful line errors and easier debugging).\n\nWhen you combine both of these, you get a node module that is your new best debugging friend.\n\n## Getting Started\nInstall the module with: `npm install jsmin-sourcemap`\n\n## Demos\nThe folders in `demo` are hosted on Plunker for your testing and enjoyment.\n\n- Basic [http://embed.plnkr.co/mGHUpe](http://embed.plnkr.co/mGHUpe)\n- jQuery [http://embed.plnkr.co/JyNn5e](http://embed.plnkr.co/JyNn5e)\n- Multi [http://embed.plnkr.co/FPkQx6](http://embed.plnkr.co/FPkQx6)\n\n## Documentation\nJSMin is a standalone function which takes the following format of paramters\n```js\n/**\n * JSMin + source-map\n * @param {Object} params Parameters to minify and generate sourcemap with\n * @param {String} [params.dest=\"undefined.js\"] Destination for your JavaScript (used inside of sourcemap map)\n * @param {String} [params.srcRoot] Optional root for all relative URLs\n *\n * SINGLE FILE FORMAT\n * @param {String} params.src File path to original JavaScript (seen when an error is thrown)\n * @param {String} params.code JavaScript to minify\n *\n * MULTI FILE FORMAT\n * @param {Object[]} params.input Array of objects) to minify\n * @param {String} params.input[n].src File path to original JavaScript (seen when an error is thrown)\n * @param {String} params.input[n].code JavaScript to minify\n *\n * @return {Object} retObj\n * @return {String} retObj.code Minified JavaScript\n * @return {Object} retObj.sourcemap Sourcemap of input to minified JavaScript\n */\n```\n\n## Examples\n### Single file\n```js\n// Load in jsmin and jQuery\nvar jsmin = require('node-jsmin-sourcemap'),\n jquerySrc = fs.readFileSync('jquery.js', 'utf8');\n\n// Process the jquery source via jsmin\nvar jqueryMinObj = jsmin({'code':jQuerySrc,'src':'jquery.js','dest':'jquery.min.js'});\n\n// Minified code is available at\n// jqueryMinObj.code;\n\n// Sourcemap is available at\n// jqueryMinObj.sourcemap;\n```\n\n### Multiple files\n```js\n// Load in jsmin, jQuery, and underscore\nvar jsmin = require('node-jsmin-sourcemap'),\n jquerySrc = fs.readFileSync('jquery.js', 'utf8'),\n underscoreSrc = fs.readFileSync('underscore.js', 'utf8');\n\n// Process the jquery amd underscore source via jsmin\nvar indexMinObj = jsmin({\n 'input': [{\n 'code': jQuerySrc,\n 'src': 'jquery.js'\n }, {\n 'code': underscoreSrc,\n 'src': 'underscore.js'\n }],\n 'dest':'index.min.js'\n });\n\n// Minified code is availabe at\n// indexMinObj.code;\n\n// Sourcemap is availabe at\n// indexMinObj.sourcemap;\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint via [grunt](https://github.com/gruntjs/grunt) and test via `npm test`.\n\n## Donating\nSupport this project and [others by twolfson][gittip] via [gittip][].\n\n[![Support via Gittip][gittip-badge]][gittip]\n\n[gittip-badge]: https://rawgithub.com/twolfson/gittip-badge/master/dist/gittip.png\n[gittip]: https://www.gittip.com/twolfson/\n\n## Unlicense\nAs of Dec 04 2013, Todd Wolfson has released this repository and its contents to the public domain.\n\nIt has been released under the [UNLICENSE][].\n\n[UNLICENSE]: UNLICENSE\n\nPrevious to this, it was licensed under the [MIT license][].\n\n[MIT license]: https://github.com/twolfson/node-jsmin-sourcemap/blob/3c92dddc788658351b87c608c5da770272f178c0/README.md#license", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/twolfson/node-jsmin-sourcemap.git" }, "scripts": { "test": "mocha tests" }, "version": "0.16.0" }