1.1.0 • Published 11 years ago

vinyl-named v1.1.0

Weekly downloads
21,383
License
-
Repository
github
Last release
11 years ago

vinyl-named

Give vinyl files arbitrary chunk names.

example

var named = require('vinyl-named')
var fs = require('vinyl-fs')
var through = require('through')

fs.src('src/*.js')
  .pipe(named())
  .pipe(through(function(file) {
    // file.named now equals the basename minus the extension
  }))

// Or return a name for a given file
fs.src('src/*.js')
  .pipe(named(function(file) {
    return 'your own name'
  }))

// Or specify a custom name property
fs.src('src/*.js')
  .pipe(named(function(file) {
    file.customName = 'your name'
    this.queue(file)
  }))

install

With npm do:

npm install vinyl-named

release history

  • 1.1.0 - renaming chunkName to named to be more generic
  • 1.0.0 - initial release

license

Copyright (c) 2014 Kyle Robinson Young
Licensed under the MIT license.

@wwwoda/gulp-tasksstartydindesinov-es6@hec9527/pico@everything-registry/sub-chunk-3056table-sectionwisfweb-dev-toolswehwwydswitch-sectionvoltrazord-expandablesvstartervue-appcorevue-entryvesh-vjvue-boot@blinkmobile/bm-plugin-forms-angularjsjekyll-react-webpackkth-node-build-commonskth-node-vuekth-node-infernolaravel-elixir-vue-loaderlaravel-elixir-webpacklaravel-elixir-webpack-exideal-toolsgulp-pipesgulp-mpagulp-mini-frameworkgulp-assistantgulp-frontend-toolsgulp-wpgulp-setupgulp-sitegulp-uikitgulpfile.jsgulp-webpack-taskinterstellarlight-scriptsmango-climaintained-moonbase@wearethegarden/builder@websm/feedback-module@telerik/kendo-common-tasksalert-sectionaviziacomponentsavz-temp-components37sy-build@gulppress/scripts@ecedi/gulp-stack@colinrotherham/corestatic-scriptstwriterubaseubase-coreubase-vueubase-vue-tsubase-vue2time-picker-section@catalyst-elements/build-processzent-kitzpackviewbus-component-scripts@infinitebrahmanuniverse/nolb-vin@kunoichi/gulp-assets-task-set@ladydinde/dindodev@netzstrategen/gulp-task-collection@progress/kendo-common-tasks@pipflow/coremoonbasems-scriptsmodal-sectionorganic-stem-devtoolspairin-gulpsection-builderrs-kitregether-rc-serverselect2-sectionnoco-component-scriptsnoco-scriptsnp-siriuspolytemplradio-sectionsinobest-datav-es6-testslider-sectionsofycat-servercheckbox-sectioncascader-sectioncommander-gulp-utilcommander-gulp-scriptsdate-picker-sectionbasebuild-componentbb-lp-cliberrywalletboxescmsca-buildmodulebzk-testbutton-sectionfrontend-starter
1.1.0

11 years ago

1.0.0

11 years ago