| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/studiokobylisy_cz/www/wp-content/themes/studiokobylisy/node_modules/vinyl-named/ |
Upload File : |
# vinyl-named
Give vinyl files arbitrary chunk names.
## example
```js
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](http://npmjs.org) do:
```shell
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.