{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.2","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","file-contents":"^0.2.4","glob-parent":"^2.0.0","is-valid-glob":"^0.3.0","lazy-cache":"^0.2.3","vinyl":"^1.0.0"},"devDependencies":{"glob":"^5.0.15","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":[],"verb":{"related":{"list":["to-vinyl","to-template"]}},"gitHead":"b039531c1786a444c9aee1b6a99be043a1377460","_id":"to-file@0.1.2","_shasum":"38e355a1fd3dfe88fd880254ebf9990f3b1ec2f2","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"38e355a1fd3dfe88fd880254ebf9990f3b1ec2f2","tarball":"http://registry-npm.ywwl.com/to-file/download/to-file-0.1.2.tgz","integrity":"sha512-PTKu6nThXLT+fn5aHWcQwSyKw/4vbB8/okk9eI+gTbPlHqllaG+1etqXzdW6nPWLhjN2/pec+Ri7smCbB3aXZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKR81CNZ8xUgjmcilmuc6ZESspN41MDHzRo9izZMtqoAiEAkmoAG7h7dd+pfteEc1bJ9tYY8jW4cEziR49jABTLJiE="}],"size":2768,"noattachment":false,"key":"/to-file/-/to-file-0.1.2.tgz"},"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":1444371590103,"_cnpm_publish_time":1444371590103,"dist-tags":{"latest":"0.2.0"}}