# vinyl-named

> Give vinyl files chunk names.

Latest version **1.1.0** (published 2014-10-16) · 0 weekly downloads

## Install

```sh
npm install vinyl-named
pnpm add vinyl-named
yarn add vinyl-named
bun add vinyl-named
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2014-10-16 |
| First published | 2014-10-15 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/vinyl-named) |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 46 |
| Author | Kyle Robinson Young |
| Maintainers | shama |
| Keywords | vinyl, fs, name |

## Links

- npm: https://www.npmjs.com/package/vinyl-named
- Repository: https://github.com/shama/vinyl-named
- Issues: https://github.com/shama/vinyl-named/issues
- npm.io page: https://npm.io/package/vinyl-named

## Dependencies (1)

- [through](https://npm.io/package/through.md) ^2.3.6

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2014-10-16
- 1.0.0 — 2014-10-15

## README

# 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.

---
_Source: https://npm.io/package/vinyl-named · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
