{"_id":"file-contents","_rev":"78807","name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:25:15.000Z","created":"2015-07-15T03:11:09.085Z","1.0.1":"2017-02-03T23:13:42.711Z","1.0.0":"2017-02-03T00:45:01.483Z","0.3.2":"2016-07-21T00:21:59.451Z","0.3.1":"2016-06-19T12:20:26.208Z","0.3.0":"2016-06-11T14:49:36.006Z","0.2.4":"2015-10-09T03:50:59.254Z","0.2.3":"2015-10-09T03:10:08.425Z","0.2.2":"2015-10-06T02:35:26.386Z","0.2.1":"2015-10-06T02:33:10.774Z","0.2.0":"2015-07-17T07:06:20.462Z","0.1.1":"2015-07-15T06:47:00.771Z","0.1.0":"2015-07-15T03:11:09.085Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"versions":{"1.0.1":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/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","is-buffer":"^1.1.4","kind-of":"^3.1.0","lazy-cache":"^2.0.2","strip-bom-buffer":"^0.1.1","strip-bom-string":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.2.0","vinyl":"^2.0.1"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["file-stat","file-symlinks","stream-loader","vinyl","vinyl-fs"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator","vinyl-fs"]},"gitHead":"5a21688915349169024d33b8d9d6ea2f1928bb9e","_id":"file-contents@1.0.1","_shasum":"af25bbfd3d3446384fad806649d8808bcfee1ec8","_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":"af25bbfd3d3446384fad806649d8808bcfee1ec8","size":4579,"noattachment":false,"key":"/file-contents/-/file-contents-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/file-contents-1.0.1.tgz_1486163622044_0.7759147670585662"},"directories":{},"publish_time":1486163622711,"_cnpm_publish_time":1486163622711,"_hasShrinkwrap":false},"1.0.0":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/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-stat":"^1.0.0","fs-exists-sync":"^0.1.0","graceful-fs":"^4.1.11","is-buffer":"^1.1.4","isobject":"^3.0.0","lazy-cache":"^2.0.2","strip-bom-buffer":"^0.1.1","strip-bom-string":"^0.1.2","through2":"^2.0.3"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.2.0","vinyl":"^2.0.1"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["file-stat","file-symlinks","stream-loader","vinyl","vinyl-fs"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator","vinyl-fs"]},"gitHead":"1e02b1159d924be30395b36f753bddc0f255a025","_id":"file-contents@1.0.0","_shasum":"9e83e0a9d217250025023a90865b9a0d4560789c","_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":"9e83e0a9d217250025023a90865b9a0d4560789c","size":4510,"noattachment":false,"key":"/file-contents/-/file-contents-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-contents-1.0.0.tgz_1486082699465_0.04039680724963546"},"directories":{},"publish_time":1486082701483,"_cnpm_publish_time":1486082701483,"_hasShrinkwrap":false},"0.3.2":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.3.2","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js","LICENSE","README.md","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-stat":"^0.2.3","fs-exists-sync":"^0.1.0","graceful-fs":"^4.1.4","is-buffer":"^1.1.3","isobject":"^2.1.0","lazy-cache":"^2.0.1","strip-bom-buffer":"^0.1.1","strip-bom-string":"^0.1.2","through2":"^2.0.1","vinyl":"^1.1.1"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["file-stat","file-symlinks","stream-loader","vinyl","vinyl-fs"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator","vinyl-fs"]},"gitHead":"8185b502f7a963d45b0332b8091a32e2ac395794","_id":"file-contents@0.3.2","_shasum":"a0939fed1b8cda1580266fc6b753a232fb46de53","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a0939fed1b8cda1580266fc6b753a232fb46de53","size":4691,"noattachment":false,"key":"/file-contents/-/file-contents-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.3.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-contents-0.3.2.tgz_1469060517391_0.6942873194348067"},"directories":{},"publish_time":1469060519451,"_cnpm_publish_time":1469060519451,"_hasShrinkwrap":false},"0.3.1":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/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-stat":"^0.2.3","fs-exists-sync":"^0.1.0","graceful-fs":"^4.1.4","is-buffer":"^1.1.3","isobject":"^2.1.0","lazy-cache":"^2.0.1","strip-bom-buffer":"^0.1.1","strip-bom-string":"^0.1.2","through2":"^2.0.1"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["file-stat","file-symlinks","stream-loader","vinyl","vinyl-fs"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator","vinyl-fs"]},"gitHead":"5130fde141ec143288a4b8589e627f57eaf6b98a","_id":"file-contents@0.3.1","_shasum":"d1677f4246af8e4e169f64ab2d133497bf215b75","_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":"d1677f4246af8e4e169f64ab2d133497bf215b75","size":3036,"noattachment":false,"key":"/file-contents/-/file-contents-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/file-contents-0.3.1.tgz_1466338824876_0.1050549151841551"},"directories":{},"publish_time":1466338826208,"_cnpm_publish_time":1466338826208,"_hasShrinkwrap":false},"0.3.0":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/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-stat":"^0.2.2","fs-exists-sync":"^0.1.0","graceful-fs":"^4.1.4","is-buffer":"^1.1.3","isobject":"^2.1.0","lazy-cache":"^2.0.1","strip-bom-buffer":"^0.1.1","strip-bom-string":"^0.1.2","through2":"^2.0.1"},"devDependencies":{"gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["file-stat","file-symlinks","stream-loader","vinyl","vinyl-fs"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-readme-generator","vinyl-fs"]},"gitHead":"bc656fe0e57b4a97e4c71082df91af38d0bfed67","_id":"file-contents@0.3.0","_shasum":"3ce5fa0652e101ea60c8f7083f6eb52a08c43106","_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":"3ce5fa0652e101ea60c8f7083f6eb52a08c43106","size":3028,"noattachment":false,"key":"/file-contents/-/file-contents-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/file-contents-0.3.0.tgz_1465656573291_0.42803920339792967"},"directories":{},"publish_time":1465656576006,"_cnpm_publish_time":1465656576006,"_hasShrinkwrap":false},"0.2.4":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.2.4","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","is-buffer":"^1.1.0","is-utf8":"^0.2.0","lazy-cache":"^0.2.3","through2":"^2.0.0"},"devDependencies":{"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":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"f9a7269a84e0b3ff6c5d54916516d40bc857242a","_id":"file-contents@0.2.4","_shasum":"0506f7b8eff62afa45ae45da4df9e9d47df453cb","_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":"0506f7b8eff62afa45ae45da4df9e9d47df453cb","size":3602,"noattachment":false,"key":"/file-contents/-/file-contents-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.2.4.tgz"},"directories":{},"publish_time":1444362659254,"_cnpm_publish_time":1444362659254,"_hasShrinkwrap":false},"0.2.3":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","lazy-cache":"^0.2.3","through2":"^2.0.0"},"devDependencies":{"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":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"f9a7269a84e0b3ff6c5d54916516d40bc857242a","_id":"file-contents@0.2.3","_shasum":"db00f82d8680fea45119595903c8e3691c5cfc9a","_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":"db00f82d8680fea45119595903c8e3691c5cfc9a","size":3515,"noattachment":false,"key":"/file-contents/-/file-contents-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.2.3.tgz"},"directories":{},"publish_time":1444360208425,"_cnpm_publish_time":1444360208425,"_hasShrinkwrap":false},"0.2.2":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","lazy-cache":"^0.2.3","through2":"^2.0.0"},"devDependencies":{"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":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"ea811574d3b5c5e7e49173343b8c134e378aba20","_id":"file-contents@0.2.2","_shasum":"8e0c5a7be3d4db9a581b86d89f4cc09734a17c2d","_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":"8e0c5a7be3d4db9a581b86d89f4cc09734a17c2d","size":3618,"noattachment":false,"key":"/file-contents/-/file-contents-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.2.2.tgz"},"directories":{},"publish_time":1444098926386,"_cnpm_publish_time":1444098926386,"_hasShrinkwrap":false},"0.2.1":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","lazy-cache":"^0.2.3","through2":"^2.0.0"},"devDependencies":{"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":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"ea811574d3b5c5e7e49173343b8c134e378aba20","_id":"file-contents@0.2.1","_shasum":"deb9bf85c28bde69a87c77f64242f27e18d31817","_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":"deb9bf85c28bde69a87c77f64242f27e18d31817","size":3412,"noattachment":false,"key":"/file-contents/-/file-contents-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.2.1.tgz"},"directories":{},"publish_time":1444098790774,"_cnpm_publish_time":1444098790774,"_hasShrinkwrap":false},"0.2.0":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","through2":"^2.0.0"},"devDependencies":{"mocha":"*"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"383e783364fd8965ea689af058bfa2dbf146fda0","_id":"file-contents@0.2.0","_shasum":"443603511d0ca0886fa7697187299ca92722ed89","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"443603511d0ca0886fa7697187299ca92722ed89","size":3272,"noattachment":false,"key":"/file-contents/-/file-contents-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.2.0.tgz"},"directories":{},"publish_time":1437116780462,"_cnpm_publish_time":1437116780462,"_hasShrinkwrap":false},"0.1.1":{"name":"file-contents","description":"Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","through2":"^2.0.0"},"devDependencies":{"mocha":"*"},"keywords":["buffer","content","contents","directory","file","filepath","fs","is","is-directory","is-file","path","plugin","read","read-file","readdir","stat","stats","stream","through","vinyl"],"verb":{"related":{"list":["stream-loader","file-stat","file-symlinks","vinyl","vinyl-fs"]}},"gitHead":"d81b901ca4ef1f7b1c945c80926936cfacd92204","_id":"file-contents@0.1.1","_shasum":"9c96f01da1fac98b484b98c06692bb599bda6858","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9c96f01da1fac98b484b98c06692bb599bda6858","size":2682,"noattachment":false,"key":"/file-contents/-/file-contents-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.1.1.tgz"},"directories":{},"publish_time":1436942820771,"_cnpm_publish_time":1436942820771,"_hasShrinkwrap":false},"0.1.0":{"name":"file-contents","description":"Set the `contents` property on a file object in a stream.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/file-contents","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/file-contents.git"},"bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.0","file-stat":"^0.1.0","graceful-fs":"^4.1.2","through2":"^2.0.0"},"devDependencies":{"mocha":"*"},"keywords":["buffer","content","contents","directory","file","filepath","fs","path","read","read-file","readdir","stream","vinyl","directory","file","is","is-directory","is-file","plugin","stat","stats","stream","through"],"verb":{"related":{"list":["stream-loader","file-stat","vinyl","vinyl-fs"]}},"_id":"file-contents@0.1.0","_shasum":"8a4fea378566406a13612589f5e6acc72e39c9f6","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8a4fea378566406a13612589f5e6acc72e39c9f6","size":2549,"noattachment":false,"key":"/file-contents/-/file-contents-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file-contents/download/file-contents-0.1.0.tgz"},"directories":{},"publish_time":1436929869085,"_cnpm_publish_time":1436929869085,"_hasShrinkwrap":false}},"readme":"# file-contents [![NPM version](https://img.shields.io/npm/v/file-contents.svg?style=flat)](https://www.npmjs.com/package/file-contents) [![NPM monthly downloads](https://img.shields.io/npm/dm/file-contents.svg?style=flat)](https://npmjs.org/package/file-contents)  [![NPM total downloads](https://img.shields.io/npm/dt/file-contents.svg?style=flat)](https://npmjs.org/package/file-contents) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/file-contents.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/file-contents)\n\n> Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save file-contents\n```\n\nThis is inspired by the code in [vinyl-fs](http://github.com/wearefractal/vinyl-fs) `src`. I needed a function that essentially did the same thing but could be used with stream or non-stream code.\n\n## Usage\n\n```js\nvar through = require('through2');\nvar contents = require('file-contents');\n\nfunction toStream(fp) {\n  var stream = through.obj();\n  stream.write({path: fp});\n  stream.end();\n  return stream;\n}\n\ntoStream('README.md')\n  .pipe(contents())\n  .on('data', function(file) {\n    console.log(file.contents.toString());\n  });\n\n```\n\n**async**\n\nAn `.async()` method is exposed for non-stream, async usage.\n\n```js\ncontents.async({path: 'README.md'}, function (err, file) {\n  // results in something like:\n  // \n  //   { path: 'README.md',\n  //   stat:\n  //    { dev: 16777218,\n  //      mode: 33188,\n  //      nlink: 1,\n  //      uid: 501,\n  //      gid: 20,\n  //      rdev: 0,\n  //      blksize: 4096,\n  //      ino: 26436116,\n  //      size: 2443,\n  //      blocks: 8,\n  //      atime: Fri Jul 17 2015 03:01:54 GMT-0400 (EDT),\n  //      mtime: Wed Jul 15 2015 02:46:55 GMT-0400 (EDT),\n  //      ctime: Wed Jul 15 2015 02:46:55 GMT-0400 (EDT),\n  //      birthtime: Tue Jul 14 2015 23:03:58 GMT-0400 (EDT) },\n  // contents: <Buffer 23 20 66 69 6c 65 2d 63 6f 6e 74 65 6e 74 73 20 5b 21 5b 4e 50 4d 20 76 65 72 73 69 6f 6e 5d 28 68 74 74 70 73 3a 2f 2f 62 61 64 67 65 2e 66 75 72 79 ... > }\n});\n```\n\n**sync**\n\nA `.sync()` method is exposed for non-stream, sync usage.\n\n```js\nvar file = {path: 'README.md'};\ncontents.sync(file);\n// results in something like:\n// \n//   { path: 'README.md',\n//   stat:\n//    { dev: 16777218,\n//      mode: 33188,\n//      nlink: 1,\n//      uid: 501,\n//      gid: 20,\n//      rdev: 0,\n//      blksize: 4096,\n//      ino: 26436116,\n//      size: 2443,\n//      blocks: 8,\n//      atime: Fri Jul 17 2015 03:01:54 GMT-0400 (EDT),\n//      mtime: Wed Jul 15 2015 02:46:55 GMT-0400 (EDT),\n//      ctime: Wed Jul 15 2015 02:46:55 GMT-0400 (EDT),\n//      birthtime: Tue Jul 14 2015 23:03:58 GMT-0400 (EDT) },\n// contents: <Buffer 23 20 66 69 6c 65 2d 63 6f 6e 74 65 6e 74 73 20 5b 21 5b 4e 50 4d 20 76 65 72 73 69 6f 6e 5d 28 68 74 74 70 73 3a 2f 2f 62 61 64 67 65 2e 66 75 72 79 ... > }\n```\n\n## History\n\n**v0.2.0**\n\n* renames `.getContents` method to `.async`\n* adds `.sync` method\n\n## About\n\n### Related projects\n\n* [file-stat](https://www.npmjs.com/package/file-stat): Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or… [more](https://github.com/jonschlinkert/file-stat) | [homepage](https://github.com/jonschlinkert/file-stat \"Set the `stat` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.\")\n* [file-symlinks](https://www.npmjs.com/package/file-symlinks): Resolve symlinks and expose the `stat` property on a file object. | [homepage](https://github.com/jonschlinkert/file-symlinks \"Resolve symlinks and expose the `stat` property on a file object.\")\n* [stream-loader](https://www.npmjs.com/package/stream-loader): create a read stream from a glob of files. can be used as a loader-cache… [more](https://github.com/jonschlinkert/stream-loader) | [homepage](https://github.com/jonschlinkert/stream-loader \"create a read stream from a glob of files. can be used as a loader-cache loader, or by itself as an a-la-carte replacement or addition to vinyl src.\")\n* [vinyl-fs](https://www.npmjs.com/package/vinyl-fs): Vinyl adapter for the file system | [homepage](http://github.com/wearefractal/vinyl-fs \"Vinyl adapter for the file system\")\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 project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 03, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/file-contents","bugs":{"url":"https://github.com/jonschlinkert/file-contents/issues"},"license":"MIT"}