{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/to-file","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/to-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/to-file/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","extend-shallow":"^2.0.1","file-contents":"^0.2.4","glob-parent":"^2.0.0","is-valid-glob":"^0.3.0","isobject":"^2.1.0","lazy-cache":"^2.0.1","vinyl":"^1.1.1"},"devDependencies":{"glob":"^5.0.15","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.1","gulp-mocha":"^2.1.3","mocha":"^2.4.5"},"keywords":["contents","file","read","vinyl"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["to-template","to-vinyl"]},"lint":{"reflinks":true},"reflinks":["glob-parent","verb"]},"gitHead":"43b4444a418efa1304ebf01044a5dd9711dd813e","_id":"to-file@0.2.0","_shasum":"236c6c088065e570defbd15cf4b4e565be46ea93","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"236c6c088065e570defbd15cf4b4e565be46ea93","tarball":"http://registry-npm.ywwl.com/to-file/download/to-file-0.2.0.tgz","integrity":"sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9wBFtBpot19KglaxvIVzNRrUKjCoyf+Z2MAx0OZlMkAiA9VX3Nqe2y/ZzICGGlGORqwFepgNrWaB5M3wBp5EPl3g=="}],"size":3204,"noattachment":false,"key":"/to-file/-/to-file-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-file-0.2.0.tgz_1462644169467_0.5734325663652271"},"directories":{},"readme":"# to-file [![NPM version](https://img.shields.io/npm/v/to-file.svg?style=flat)](https://www.npmjs.com/package/to-file) [![NPM downloads](https://img.shields.io/npm/dm/to-file.svg?style=flat)](https://npmjs.org/package/to-file) [![Build Status](https://img.shields.io/travis/jonschlinkert/to-file.svg?style=flat)](https://travis-ci.org/jonschlinkert/to-file)\n\nConvert a file path to a vinyl file.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install to-file --save\n```\n\n## Usage\n\n```js\nvar toFile = require('to-file');\nvar glob = require('glob');\n\nvar files = glob.sync('**/*.js')\nfiles = files.map(function(fp) {\n  return toFile(fp);\n});\n```\n\n**glob parent**\n\nOptionally pass the original glob pattern as the second argument to populate `file.base` from the [glob-parent](https://github.com/es128/glob-parent).\n\n```js\nvar files = glob.sync('**/*.js')\nfiles = files.map(function(fp) {\n  return toFile(fp, '**/*.js');\n});\n```\n\n**options**\n\nIf an options object is passed as the second or third argument, the `cwd` and `base` properties will be used to update the file object, and the `options` object will be added as a property on the `file` object.\n\n```js\nvar files = glob.sync('**/*.js')\nfiles = files.map(function(fp) {\n  return toFile(fp, '**/*.js');\n});\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [to-template](https://www.npmjs.com/package/to-template): Convert a vinyl file object to a Template-compatible template object. | [homepage](https://github.com/jonschlinkert/to-template)\n* [to-vinyl](https://www.npmjs.com/package/to-vinyl): Convert an object to a vinyl file object. Safely mixes additional properties onto the file… [more](https://www.npmjs.com/package/to-vinyl) | [homepage](https://github.com/jonschlinkert/to-vinyl)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/to-file/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ 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/to-file/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 07, 2016._","publish_time":1462644170445,"_cnpm_publish_time":1462644170445,"dist-tags":{"latest":"0.2.0"}}