Plugin for 'base' applications that adds a rename
method that, when called, can be passed to app.dest()
as the rename function (this is an instance plugin, not pipeline plugin)
Install with npm:
$ npm install --save base-fs-rename
Requires either the base-fs or the assemble-fs plugin to work.
var fs = require('base-fs');
var rename = require('base-fs-rename');
var Base = require('base');
var app = new Base();
app.use(rename());
app.use(fs());
app.src('fixtures/a.txt')
// pass `app.rename()` to `app.dest()`
.pipe(app.dest(app.rename('actual')));
You might also be interested in these projects:
- assemble-fs: Assemble plugin to add methods to assemble for working with the file system, like src… more | homepage
- base: base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… more | homepage
- base-fs: base-methods plugin that adds vinyl-fs methods to your 'base' application for working with the file… more | homepage
- base-fs-conflicts: Detect potential file system conflicts and if necessary prompt the user before overwriting files. | homepage
- base-task: base plugin that provides a very thin wrapper around https://github.com/doowb/composer for adding task methods to… more | homepage
This document was generated by verb-readme-generator (a verb generator), please don't edit directly. Any changes to the readme must be made in .verb.md. See Building Docs.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. Or visit the verb-readme-generator project to submit bug reports or pull requests for the readme layout template.
Generate readme and API documentation with verb:
$ npm install -g verb verb-readme-generator && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 20, 2016.