{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.7","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.0.0","lazy-cache":"^1.0.3","vinyl":"^1.1.1"},"devDependencies":{"glob":"^5.0.15","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-format-md":"^0.1.5","gulp-istanbul":"^0.10.1","gulp-mocha":"^2.1.3","mocha":"*"},"keywords":["contents","file","read","vinyl"],"verb":{"tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["to-template","to-vinyl"]}},"gitHead":"80810bf3590140f79baa7a0d30293f866987bd53","_id":"to-file@0.1.7","_shasum":"d492ec9d76f06a2551774218dbd0d739437d9bb6","_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":"d492ec9d76f06a2551774218dbd0d739437d9bb6","tarball":"http://registry-npm.ywwl.com/to-file/download/to-file-0.1.7.tgz","integrity":"sha512-l48cyygESmhX8m6fHggQYi047+jv3Sjd+bic+3dspFcrygsqp50aGnA9cp98Xk2di4JadJrUpGI4P8wK2acayg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGT9ErLu9AF4kOgNh5bJdqBhRnu4BrMV7jM6nyGP3pZrAiEA04Dh8JUEvTwCK9D5pYzFtQYVrbFpfFcE2mP3M6YEBjQ="}],"size":3008,"noattachment":false,"key":"/to-file/-/to-file-0.1.7.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/to-file-0.1.7.tgz_1455325761623_0.09141983138397336"},"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":1455325765072,"_cnpm_publish_time":1455325765072,"dist-tags":{"latest":"0.2.0"}}