1.1.0 • Published 10 years ago

vinyl-named v1.1.0

Weekly downloads
21,383
License
-
Repository
github
Last release
10 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-3056@ilabdev/webpack@infinitebrahmanuniverse/nolb-vin@gulppress/scripts@futhark/straws@netzstrategen/gulp-task-collection@ladydinde/dindodev@kunoichi/gulp-assets-task-setgastropod-task-webpackzpackwwydzent-kitwisf@wearethegarden/builder@sobold/rover@nlemoine/gulp-tasks@progress/kendo-common-tasks@telerik/kendo-common-tasks@suriteka/bzk@ssovit/devthing@websm/feedback-moduleeasy-gulp-taskereasy-webflow@pipflow/corenoco-component-scriptsnoco-scripts37sy-buildorganic-stem-devtoolsnp-sirius@firma-de/gulp-compilefeds-boilerplate-webfeds-build-scripts@fnpen/build-toolsalert-section@ffw/randstad-local-orbit@fantassin/bzkavz-temp-componentsbb-lp-clibasebuild-componentpolytemplbutton-sectiongulp-frontend-toolsgulp-mpagulp-mini-frameworkpairin-gulpform_header_persisterform-sectionfrontend-starteraviziacomponentsgastropod-task-docsgastropod-task-sasscommander-gulp-scriptscommander-gulp-util@colinrotherham/coreboxescmscheckbox-sectioncat-serverfay-gulpregether-rc-serverjekyll-react-webpackberrywalletbzk-testca-buildmodulegulp-assistant@blinkmobile/bm-plugin-forms-angularjsgulp-pipesgulp-sitegulpfile.jsradio-sectiongulp-wpgulp-webpack-taskgulp-setupgulp-uikitcascader-section@catalyst-elements/build-processdate-picker-sectionrs-kitideal-toolsinterstellarmango-climaintained-moonbaseselect2-sectionlaravel-elixir-vue-loaderlaravel-elixir-webpacklaravel-elixir-webpack-exslider-sectionsofylight-scriptsstatic-scriptsubaseubase-coreubase-vueubase-vue-tsubase-vue2twriterkth-node-build-commons
1.1.0

10 years ago

1.0.0

10 years ago