136 lines
7.9 KiB
JSON
136 lines
7.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "gulp-util@^3.0.4",
|
|
"scope": null,
|
|
"escapedName": "gulp-util",
|
|
"name": "gulp-util",
|
|
"rawSpec": "^3.0.4",
|
|
"spec": ">=3.0.4 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/fbjs-scripts"
|
|
]
|
|
],
|
|
"_from": "gulp-util@>=3.0.4 <4.0.0",
|
|
"_id": "gulp-util@3.0.8",
|
|
"_inCache": true,
|
|
"_location": "/gulp-util",
|
|
"_nodeVersion": "0.10.41",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/gulp-util-3.0.8.tgz_1482793870401_0.4167847656644881"
|
|
},
|
|
"_npmUser": {
|
|
"name": "phated",
|
|
"email": "blaine.bublitz@gmail.com"
|
|
},
|
|
"_npmVersion": "2.15.2",
|
|
"_phantomChildren": {
|
|
"escape-string-regexp": "1.0.5",
|
|
"has-ansi": "2.0.0"
|
|
},
|
|
"_requested": {
|
|
"raw": "gulp-util@^3.0.4",
|
|
"scope": null,
|
|
"escapedName": "gulp-util",
|
|
"name": "gulp-util",
|
|
"rawSpec": "^3.0.4",
|
|
"spec": ">=3.0.4 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/fbjs-scripts"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz",
|
|
"_shasum": "0054e1e744502e27c04c187c3ecc505dd54bbb4f",
|
|
"_shrinkwrap": null,
|
|
"_spec": "gulp-util@^3.0.4",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/fbjs-scripts",
|
|
"author": {
|
|
"name": "Fractal",
|
|
"email": "contact@wearefractal.com",
|
|
"url": "http://wearefractal.com/"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/gulpjs/gulp-util/issues"
|
|
},
|
|
"dependencies": {
|
|
"array-differ": "^1.0.0",
|
|
"array-uniq": "^1.0.2",
|
|
"beeper": "^1.0.0",
|
|
"chalk": "^1.0.0",
|
|
"dateformat": "^2.0.0",
|
|
"fancy-log": "^1.1.0",
|
|
"gulplog": "^1.0.0",
|
|
"has-gulplog": "^0.1.0",
|
|
"lodash._reescape": "^3.0.0",
|
|
"lodash._reevaluate": "^3.0.0",
|
|
"lodash._reinterpolate": "^3.0.0",
|
|
"lodash.template": "^3.0.0",
|
|
"minimist": "^1.1.0",
|
|
"multipipe": "^0.1.2",
|
|
"object-assign": "^3.0.0",
|
|
"replace-ext": "0.0.1",
|
|
"through2": "^2.0.0",
|
|
"vinyl": "^0.5.0"
|
|
},
|
|
"deprecated": "gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5",
|
|
"description": "Utility functions for gulp plugins",
|
|
"devDependencies": {
|
|
"buffer-equal": "^0.0.1",
|
|
"coveralls": "^2.11.2",
|
|
"event-stream": "^3.1.7",
|
|
"istanbul": "^0.3.5",
|
|
"istanbul-coveralls": "^1.0.1",
|
|
"jshint": "^2.5.11",
|
|
"lodash.templatesettings": "^3.0.0",
|
|
"mocha": "^2.0.1",
|
|
"rimraf": "^2.2.8",
|
|
"should": "^7.0.1"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "0054e1e744502e27c04c187c3ecc505dd54bbb4f",
|
|
"tarball": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"gitHead": "28c2aa2a3f8782a995b47ed051ab52885c705024",
|
|
"homepage": "https://github.com/gulpjs/gulp-util#readme",
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "contra",
|
|
"email": "contra@wearefractal.com"
|
|
},
|
|
{
|
|
"name": "fractal",
|
|
"email": "contact@wearefractal.com"
|
|
},
|
|
{
|
|
"name": "phated",
|
|
"email": "blaine.bublitz@gmail.com"
|
|
}
|
|
],
|
|
"name": "gulp-util",
|
|
"optionalDependencies": {},
|
|
"readme": "# gulp-util [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]\n\n## Information\n\n<table>\n<tr> \n<td>Package</td><td>gulp-util</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>Utility functions for gulp plugins</td>\n</tr>\n<tr>\n<td>Node Version</td>\n<td>>= 0.10</td>\n</tr>\n</table>\n\n## Usage\n\n```javascript\nvar gutil = require('gulp-util');\n\ngutil.log('stuff happened', 'Really it did', gutil.colors.magenta('123'));\n\ngutil.replaceExtension('file.coffee', '.js'); // file.js\n\nvar opt = {\n name: 'todd',\n file: someGulpFile\n};\ngutil.template('test <%= name %> <%= file.path %>', opt) // test todd /js/hi.js\n```\n\n### log(msg...)\n\nLogs stuff. Already prefixed with [gulp] and all that. If you pass in multiple arguments it will join them by a space.\n\nThe default gulp coloring using gutil.colors.<color>:\n```\nvalues (files, module names, etc.) = cyan\nnumbers (times, counts, etc) = magenta\n```\n\n### colors\n\nIs an instance of [chalk](https://github.com/sindresorhus/chalk).\n\n### replaceExtension(path, newExtension)\n\nReplaces a file extension in a path. Returns the new path.\n\n### isStream(obj)\n\nReturns true or false if an object is a stream.\n\n### isBuffer(obj)\n\nReturns true or false if an object is a Buffer.\n\n### template(string[, data])\n\nThis is a lodash.template function wrapper. You must pass in a valid gulp file object so it is available to the user or it will error. You can not configure any of the delimiters. Look at the [lodash docs](http://lodash.com/docs#template) for more info.\n\n## new File(obj)\n\nThis is just [vinyl](https://github.com/wearefractal/vinyl)\n\n```javascript\nvar file = new gutil.File({\n base: path.join(__dirname, './fixtures/'),\n cwd: __dirname,\n path: path.join(__dirname, './fixtures/test.coffee')\n});\n```\n\n## noop()\n\nReturns a stream that does nothing but pass data straight through.\n\n```javascript\n// gulp should be called like this :\n// $ gulp --type production\ngulp.task('scripts', function() {\n gulp.src('src/**/*.js')\n .pipe(concat('script.js'))\n .pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())\n .pipe(gulp.dest('dist/'));\n});\n```\n\n## buffer(cb)\n\nThis is similar to es.wait but instead of buffering text into one string it buffers anything into an array (so very useful for file objects).\n\nReturns a stream that can be piped to.\n\nThe stream will emit one data event after the stream piped to it has ended. The data will be the same array passed to the callback.\n\nCallback is optional and receives two arguments: error and data\n\n```javascript\ngulp.src('stuff/*.js')\n .pipe(gutil.buffer(function(err, files) {\n \n }));\n```\n\n## new PluginError(pluginName, message[, options])\n\n- pluginName should be the module name of your plugin\n- message can be a string or an existing error\n- By default the stack will not be shown. Set `options.showStack` to true if you think the stack is important for your error.\n- If you pass an error in as the message the stack will be pulled from that, otherwise one will be created.\n- Note that if you pass in a custom stack string you need to include the message along with that.\n- Error properties will be included in `err.toString()`. Can be omitted by including `{showProperties: false}` in the options.\n\nThese are all acceptable forms of instantiation:\n\n```javascript\nvar err = new gutil.PluginError('test', {\n message: 'something broke'\n});\n\nvar err = new gutil.PluginError({\n plugin: 'test',\n message: 'something broke'\n});\n\nvar err = new gutil.PluginError('test', 'something broke');\n\nvar err = new gutil.PluginError('test', 'something broke', {showStack: true});\n\nvar existingError = new Error('OMG');\nvar err = new gutil.PluginError('test', existingError, {showStack: true});\n```\n\n[npm-url]: https://www.npmjs.com/package/gulp-util\n[npm-image]: https://badge.fury.io/js/gulp-util.svg\n[travis-url]: https://travis-ci.org/gulpjs/gulp-util\n[travis-image]: https://img.shields.io/travis/gulpjs/gulp-util.svg?branch=master\n[coveralls-url]: https://coveralls.io/r/gulpjs/gulp-util\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/gulp-util.svg\n[depstat-url]: https://david-dm.org/gulpjs/gulp-util\n[depstat-image]: https://david-dm.org/gulpjs/gulp-util.svg\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/gulpjs/gulp-util.git"
|
|
},
|
|
"scripts": {
|
|
"coveralls": "istanbul cover _mocha --report lcovonly && istanbul-coveralls",
|
|
"test": "jshint *.js lib/*.js test/*.js && mocha"
|
|
},
|
|
"version": "3.0.8"
|
|
}
|