{"_id":"vinyl-item","_rev":"231820","name":"vinyl-item","description":"Extends vinyl files with properties used in vinyl-collections.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:42.000Z","created":"2016-06-01T15:33:22.204Z","1.0.0":"2016-12-29T03:10:35.052Z","0.1.0":"2016-06-01T15:33:22.204Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/vinyl-item.git"},"versions":{"1.0.0":{"name":"vinyl-item","description":"Extends vinyl files with properties used in vinyl-collections.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/vinyl-item","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/vinyl-item.git"},"bugs":{"url":"https://github.com/jonschlinkert/vinyl-item/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"base":"^0.11.1","base-option":"^0.8.4","base-plugins":"^0.4.13","clone":"^2.1.0","clone-stats":"^1.0.0","define-property":"^0.2.5","extend-shallow":"^2.0.1","isobject":"^3.0.0","lazy-cache":"^2.0.2","vinyl":"^2.0.1"},"devDependencies":{"event-stream":"^3.3.4","gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["assemble","collection","compile","context","engine","handlebars","item","render","template","templates","view","views","vinyl"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","templates","verb","vinyl"]},"reflinks":["verb","vinyl"],"lint":{"reflinks":true}},"gitHead":"42d6705d3f08e1e206867e2214d95c74fd1e2b91","_id":"vinyl-item@1.0.0","_shasum":"e4188fab795154de9e74588eaad3df4ba5151692","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e4188fab795154de9e74588eaad3df4ba5151692","size":5297,"noattachment":false,"key":"/vinyl-item/-/vinyl-item-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-item/download/vinyl-item-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vinyl-item-1.0.0.tgz_1482981032763_0.3616121569648385"},"directories":{},"publish_time":1482981035052,"_cnpm_publish_time":1482981035052,"_hasShrinkwrap":false},"0.1.0":{"name":"vinyl-item","description":"Extends vinyl files with properties used in vinyl-collections.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/vinyl-item","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/vinyl-item.git"},"bugs":{"url":"https://github.com/jonschlinkert/vinyl-item/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"base":"^0.8.1","base-option":"^0.8.2","base-plugins":"^0.4.12","clone":"^1.0.2","clone-stats":"^1.0.0","define-property":"^0.2.5","extend-shallow":"^2.0.1","isobject":"^2.1.0","lazy-cache":"^2.0.1","vinyl":"^1.1.1"},"devDependencies":{"event-stream":"^3.3.2","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["assemble","collection","compile","context","engine","handlebars","render","template","templates","view","views","vinyl"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["templates","vinyl","assemble","verb"]},"reflinks":["verb","vinyl"],"lint":{"reflinks":true}},"gitHead":"17b8dac1d62cd4e74bcc36e1fea9533c183a3f82","_id":"vinyl-item@0.1.0","_shasum":"f27813c81142eba49ca5849de4f42f6fa0e5e098","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f27813c81142eba49ca5849de4f42f6fa0e5e098","size":3875,"noattachment":false,"key":"/vinyl-item/-/vinyl-item-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vinyl-item/download/vinyl-item-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/vinyl-item-0.1.0.tgz_1464795201006_0.4059515281114727"},"directories":{},"publish_time":1464795202204,"_cnpm_publish_time":1464795202204,"_hasShrinkwrap":false}},"readme":"# vinyl-item [![NPM version](https://img.shields.io/npm/v/vinyl-item.svg?style=flat)](https://www.npmjs.com/package/vinyl-item) [![NPM monthly downloads](https://img.shields.io/npm/dm/vinyl-item.svg?style=flat)](https://npmjs.org/package/vinyl-item)  [![NPM total downloads](https://img.shields.io/npm/dt/vinyl-item.svg?style=flat)](https://npmjs.org/package/vinyl-item) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/vinyl-item.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/vinyl-item)\n\n> Extends vinyl files with properties used in vinyl-collections.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save vinyl-item\n```\n\n## Usage\n\nUse the same way you would use a [vinyl](https://github.com/gulpjs/vinyl) file:\n\n```js\nvar Item = require('vinyl-item');\nvar item = new Item({path: 'foo'});\n```\n\n## API\n\n### [Item](index.js#L32)\n\nCreate an instance of `Item`. Optionally pass a default object to use. See [vinyl](https://github.com/gulpjs/vinyl) docs for API details and additional documentation.\n\n**Example**\n\n```js\nvar item = new Item({\n  path: 'foo.html',\n  contents: new Buffer('...')\n});\n```\n\n**Params**\n\n* `item` **{Object}**\n\n### [.content](index.js#L215)\n\nNormalize the `content` and `contents` properties on `item`. This is done to ensure compatibility with the vinyl convention of using `contents` as a Buffer, as well as the assemble convention of using `content` as a string. We will eventually deprecate the `content` property.\n\n**Example**\n\n```js\nvar item = new Item({path: 'foo/bar.hbs', contents: new Buffer('foo')});\nconsole.log(item.content);\n//=> 'foo'\n```\n\n### [.engine](index.js#L237)\n\nGetter/setter to resolve the name of the `engine` to use for rendering.\n\n**Example**\n\n```js\nvar item = new Item({path: 'foo/bar.hbs'});\nconsole.log(item.engine);\n//=> '.hbs'\n```\n\n## About\n\n### Related projects\n\n* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble \"Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit\")\n* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine… [more](https://github.com/jonschlinkert/templates) | [homepage](https://github.com/jonschlinkert/templates \"System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.\")\n* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb \"Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.\")\n* [vinyl](https://www.npmjs.com/package/vinyl): Virtual file format. | [homepage](https://github.com/gulpjs/vinyl#readme \"Virtual file format.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/vinyl-item/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 28, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/vinyl-item","bugs":{"url":"https://github.com/jonschlinkert/vinyl-item/issues"},"license":"MIT"}