UNPKG

motion

Version:

motion - moving development forward

76 lines (75 loc) 4.35 kB
{ "_args": [ [ "concat-with-sourcemaps@https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "concat-with-sourcemaps@>=1.0.0 <2.0.0", "_id": "concat-with-sourcemaps@1.0.4", "_inCache": true, "_location": "/concat-with-sourcemaps", "_phantomChildren": {}, "_requested": { "name": "concat-with-sourcemaps", "raw": "concat-with-sourcemaps@https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "rawSpec": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "scope": null, "spec": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "type": "remote" }, "_requiredBy": [ "/gulp-concat" ], "_resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "_shasum": "f55b3be2aeb47601b10a2d5259ccfb70fd2f1dd6", "_shrinkwrap": null, "_spec": "concat-with-sourcemaps@https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "me@florianreiterer.com", "name": "Florian Reiterer" }, "bugs": { "url": "https://github.com/floridoo/concat-with-sourcemaps/issues" }, "dependencies": { "source-map": "^0.5.1" }, "description": "Concatenate file contents with a custom separator and generate a source map", "devDependencies": { "coveralls": "^2.11.4", "faucet": "0.0.1", "istanbul": "^0.3.21", "jshint": "^2.8.0", "tape": "^4.2.0" }, "files": [ "LICENSE.md", "README.md", "index.js", "package.json" ], "homepage": "http://github.com/floridoo/concat-with-sourcemaps", "keywords": [ "concat", "source map" ], "license": "ISC", "main": "index.js", "name": "concat-with-sourcemaps", "optionalDependencies": {}, "readme": "## Concat with source maps [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url]\n\nNPM module for concatenating files and generating source maps.\n\n### Usage example\n```js\nvar concat = new Concat(true, 'all.js', '\\n');\nconcat.add(null, \"// (c) John Doe\");\nconcat.add('file1.js', file1Content);\nconcat.add('file2.js', file2Content, file2SourceMap);\n\nvar concatenatedContent = concat.content;\nvar sourceMapForContent = concat.sourceMap;\n```\n\n### API\n\n#### new Concat(generateSourceMap, outFileName, separator)\nInitialize a new concat object.\n\nParameters:\n- generateSourceMap: whether or not to generate a source map (default: false)\n- outFileName: the file name/path of the output file (for the source map)\n- separator: the string that should separate files (default: no separator)\n\n#### concat.add(fileName, content, sourceMap)\nAdd a file to the output file.\n\nParameters:\n- fileName: file name of the input file (can be null for content without a file reference, e.g. a license comment)\n- content: content (Buffer or string) of the input file\n- sourceMap: optional source map of the input file (string). Will be merged into the output source map.\n\n#### concat.content\nThe resulting concatenated file content (Buffer).\n\n#### concat.sourceMap\nThe resulting source map of the concatenated files (string).\n\n[npm-image]: https://img.shields.io/npm/v/concat-with-sourcemaps.svg\n[npm-url]: https://www.npmjs.com/package/concat-with-sourcemaps\n[travis-image]: https://img.shields.io/travis/floridoo/concat-with-sourcemaps.svg\n[travis-url]: https://travis-ci.org/floridoo/concat-with-sourcemaps\n[coveralls-image]: https://img.shields.io/coveralls/floridoo/concat-with-sourcemaps.svg\n[coveralls-url]: https://coveralls.io/r/floridoo/concat-with-sourcemaps?branch=master\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/floridoo/concat-with-sourcemaps.git" }, "scripts": { "cover": "istanbul cover --dir reports/coverage tape test/*.js", "coveralls": "istanbul cover tape test/*.js --report lcovonly && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "tap": "tape test/*.js", "test": "jshint *.js test/*.js && faucet test/*.js" }, "version": "1.0.4" }