{"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"keywords":["contents","file","read","vinyl"],"dist-tags":{"latest":"0.2.0"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"description":"Convert a file path to a vinyl file.","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._","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/to-file.git"},"bugs":{"url":"https://github.com/jonschlinkert/to-file/issues"},"license":"MIT","versions":{"0.1.0":{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.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"],"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"]}},"_id":"to-file@0.1.0","_shasum":"0990b832567c2f49fd9d0132292c5e79db39b10e","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"0990b832567c2f49fd9d0132292c5e79db39b10e","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.0.tgz","integrity":"sha512-b8VUQGy9BuVRGrk0MUkKN+wEzXlRYhPBFnFarM18o4OO6WjEFA2uHKTshXC5wmJQjjm0TULZ8HjOn+DhgaPGhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+Y7FwhGX6gzZsQDSVSDP5zEToAyCnUB7MF4j5dlkLOQIgB+SN0oRz30MeRQkoKjum6ad18IXEbOhqYNEaPwTQhPs="}]}},"0.1.1":{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.1","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.1","_shasum":"5974a48e0ea9c4a1d92fe63c8d11a2e84938dc71","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"5974a48e0ea9c4a1d92fe63c8d11a2e84938dc71","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.1.tgz","integrity":"sha512-Q51syD4zDQMCCkE7eIxUas3dOAsZply3M0NJCCjzqehAONl5IVyjHRFGTu3e3ZJBR6z4QNBQRoWASmBng/2F3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSmoCUUnzGd/T+30zz3/VWzrkZgnqQE5Gcpn9g/ejCDwIgFWW8nGY+q4M+Mj7rytPpSXD/X/FtfDtTP4m6Mn8iNYA="}]}},"0.1.2":{"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":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"38e355a1fd3dfe88fd880254ebf9990f3b1ec2f2","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.2.tgz","integrity":"sha512-PTKu6nThXLT+fn5aHWcQwSyKw/4vbB8/okk9eI+gTbPlHqllaG+1etqXzdW6nPWLhjN2/pec+Ri7smCbB3aXZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKR81CNZ8xUgjmcilmuc6ZESspN41MDHzRo9izZMtqoAiEAkmoAG7h7dd+pfteEc1bJ9tYY8jW4cEziR49jABTLJiE="}]}},"0.1.3":{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.3","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.3","_shasum":"8a7c9f171d38f2c58e8066bd3b47a53885c46a2a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"8a7c9f171d38f2c58e8066bd3b47a53885c46a2a","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.3.tgz","integrity":"sha512-LsB5Q2RN4rYdda51Op4mojX2C5csaXU+1tfM4XIK+UQ1iaGPQnAWbrVld4J9WuLBtFvWLn9ptvklCA0Q3yiVWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCciBdFy6vtBNptxHzrZYfIOORE50JAc/GtrvL5sjTt6wIhALgTbDERIiIGaREvsKXL1v3ttDKt3lGslhpQrVXMjdik"}]}},"0.1.4":{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.4","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":"8bdba888dbaf088425d64b45253eda8bd29c47a9","_id":"to-file@0.1.4","_shasum":"478a4c127fa6f1d23bbe8e0fa269bf00d6f9ee2b","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"478a4c127fa6f1d23bbe8e0fa269bf00d6f9ee2b","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.4.tgz","integrity":"sha512-1M87+OoDJjodA+IUAriTXN3sicF6E3mrKBTD4qZn1QlWthh6CFnJxPg/VwUu7pYs7eI1QKgndmYoquRiCpdFIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIX36VTX7vU7y7kmRzv7fcOP0o5uDhRRepN9RFI9X4FQIhAIx9+TruS0OV7f+4OtGDeY2N+Q3cxXzSb1o+CoyyES0h"}]}},"0.1.5":{"name":"to-file","description":"Convert a file path to a vinyl file.","version":"0.1.5","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","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":["contents","file","read","vinyl"],"verb":{"related":{"list":["to-vinyl","to-template"]}},"gitHead":"178cade8812a75d5e3fb70577f215d878e44e7c2","_id":"to-file@0.1.5","_shasum":"0dfd033202e0c9a3062844843486f1d44a07776e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"0dfd033202e0c9a3062844843486f1d44a07776e","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.5.tgz","integrity":"sha512-YudcgmXDklit/jaUPlVYPduc3e6rFBtE1DC0ccghza8DJGW6bhxD/8QT7DPbt/7ax5xQmhxORcS2Diypa2H6ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8zoQO0QaHeg/W2+jCKRReMjXMmJwdRaAYuOOX558gcAIgfdZrHAWzq4hSY85Ds5h0eA1KN775jIZ3/mCNNlRHPSQ="}]}},"0.1.7":{"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":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"d492ec9d76f06a2551774218dbd0d739437d9bb6","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.1.7.tgz","integrity":"sha512-l48cyygESmhX8m6fHggQYi047+jv3Sjd+bic+3dspFcrygsqp50aGnA9cp98Xk2di4JadJrUpGI4P8wK2acayg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGT9ErLu9AF4kOgNh5bJdqBhRnu4BrMV7jM6nyGP3pZrAiEA04Dh8JUEvTwCK9D5pYzFtQYVrbFpfFcE2mP3M6YEBjQ="}]},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/to-file-0.1.7.tgz_1455325761623_0.09141983138397336"}},"0.2.0":{"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":"anonymous","email":"github@sellside.com"},"maintainers":[{"name":"anonymous","email":"github@sellside.com"}],"dist":{"shasum":"236c6c088065e570defbd15cf4b4e565be46ea93","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/to-file/-/to-file-0.2.0.tgz","integrity":"sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9wBFtBpot19KglaxvIVzNRrUKjCoyf+Z2MAx0OZlMkAiA9VX3Nqe2y/ZzICGGlGORqwFepgNrWaB5M3wBp5EPl3g=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/to-file-0.2.0.tgz_1462644169467_0.5734325663652271"}}},"name":"to-file","time":{"modified":"2022-06-27T07:23:12.300Z","created":"2015-10-09T06:06:09.628Z","0.1.0":"2015-10-09T06:06:09.628Z","0.1.1":"2015-10-09T06:09:28.388Z","0.1.2":"2015-10-09T06:19:50.103Z","0.1.3":"2015-10-14T08:20:21.529Z","0.1.4":"2015-10-16T15:20:52.641Z","0.1.5":"2015-10-22T21:46:17.094Z","0.1.7":"2016-02-13T01:09:25.072Z","0.2.0":"2016-05-07T18:02:50.445Z"},"readmeFilename":"README.md","homepage":"https://github.com/jonschlinkert/to-file"}