webproxy
Version:
Modify http request/response in javascript config file easily.
58 lines (57 loc) • 3.07 kB
JSON
{
"name": "gulp-footer",
"version": "1.0.5",
"description": "Gulp extension to add footer to file(s) in the pipeline.",
"main": "./index.js",
"proxy": null,
"https-proxy": null,
"directories": {
"test": "test"
},
"scripts": {
"test": "mocha --reporter spec"
},
"repository": {
"type": "git",
"url": "git://github.com/tracker1/gulp-footer.git"
},
"keywords": [
"footer",
"gulpplugin",
"eventstream"
],
"author": {
"name": "Michael J. Ryan",
"email": "mxryan@godaddy.com",
"url": "http://github.com/tracker1"
},
"contributors": [
{
"name": "GoDaddy.com",
"url": "http://github.com/godaddy"
},
{
"name": "Douglas Duteil",
"email": "douglasduteil@gmail.com",
"url": "http://github.com/douglasduteil"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/tracker1/gulp-footer/issues"
},
"dependencies": {
"event-stream": "*",
"gulp-util": "*",
"lodash.assign": "*"
},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"readme": "# gulp-footer [](http://badge.fury.io/js/gulp-footer) [](https://travis-ci.org/godaddy/gulp-footer)\r\n\r\ngulp-footer is a Gulp extension to add a footer to file(s) in the pipeline. [Gulp is a streaming build system](https://github.com/gulpjs/gulp) utilizing [node.js](http://nodejs.org/).\r\n\r\n```javascript\r\nvar footer = require('gulp-footer');\r\n```\r\n\r\n## API\r\n\r\n### footer(text, data)\r\n\r\n#### text\r\n\r\nType: `String` \r\nDefault: `''` \r\n\r\nThe template text.\r\n\r\n\r\n#### data\r\n\r\nType: `Object` \r\nDefault: `{}` \r\n\r\nThe data object used to populate the text.\r\n\r\n\r\n## Usage\r\n\r\n```javascript\r\nvar footer = require('gulp-footer');\r\n\r\ngulp.src('./foo/*.js')\r\n .pipe(footer('Hello'))\r\n .pipe(gulp.dest('./dist/')\r\n\r\ngulp.src('./foo/*.js')\r\n .pipe(footer('Hello <%= name %>\\n', { name : 'World'} ))\r\n .pipe(gulp.dest('./dist/')\r\n\r\ngulp.src('./foo/*.js')\r\n .pipe(footer('Hello ${name}\\n', { name : 'World'} ))\r\n .pipe(gulp.dest('./dist/')\r\n\r\n\r\n//\r\nvar pkg = require('./package.json');\r\nvar banner = ['/**',\r\n ' * <%= pkg.name %> - <%= pkg.description %>',\r\n ' * @version v<%= pkg.version %>',\r\n ' * @link <%= pkg.homepage %>',\r\n ' * @license <%= pkg.license %>',\r\n ' */',\r\n ''].join('\\n');\r\n\r\n//passing in the text\r\ngulp.src('./foo/*.js')\r\n .pipe(footer(banner, { pkg : pkg } ))\r\n .pipe(gulp.dest('./dist/')\r\n\r\n//reading from a file for the text\r\nvar bannerText = fs.readFileSync('banner.js');\r\n\r\n/*********************************************/\r\n//If you want the text from a file...\r\nvar fs = require('fs');\r\nvar banner = fs.readFileSync('banner.txt');\r\n```\r\n",
"readmeFilename": "README.md",
"homepage": "https://github.com/tracker1/gulp-footer",
"_id": "gulp-footer@1.0.5",
"_from": "gulp-footer@^1.0.5"
}