{"_id":"chai-files","_rev":"9-715d53623cafa8944d33a2401a68205a","name":"chai-files","description":"file system assertions for chai","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"chai-files","version":"1.0.0","description":"file system assertions for chai","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"homepage":"https://github.com/Turbo87/chai-files#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"gitHead":"31825dd912235cb8912f931996eddaff360ca667","_id":"chai-files@1.0.0","_shasum":"486ee2d51fd0dffbda175ae22e45e33801d07926","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"turbo87","email":"tobias.bieniek@gmx.de"},"dist":{"shasum":"486ee2d51fd0dffbda175ae22e45e33801d07926","tarball":"https://registry.npmjs.org/chai-files/-/chai-files-1.0.0.tgz","integrity":"sha512-GVccYYCGporMQV7A2VLGSn8LjLxhblisFQ4GVCY4vcJ8MQ2BFNnal/mZN17UkgTmc5uZCKQJv9ke4kJlHjiziQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmwkJuJpFgF7pgWXU7AmPso5qCAzqJOr8ZinJmKT4rzAiEAsTtR02qdHaVh8rTmYVK1kYWQtpEBThmGeQe3IRBTJD0="}]},"maintainers":[{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/chai-files-1.0.0.tgz_1459451666112_0.20873389719054103"}},"1.1.0":{"name":"chai-files","version":"1.1.0","description":"file system assertions for chai","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"homepage":"https://github.com/Turbo87/chai-files#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"gitHead":"ab63d398de1630132adb55edc49970b59dab870d","_id":"chai-files@1.1.0","_shasum":"50cde6424cb4783eeb839b59bf0364352da4552f","_from":".","_npmVersion":"2.15.0","_nodeVersion":"0.12.13","_npmUser":{"name":"turbo87","email":"tobias.bieniek@gmx.de"},"dist":{"shasum":"50cde6424cb4783eeb839b59bf0364352da4552f","tarball":"https://registry.npmjs.org/chai-files/-/chai-files-1.1.0.tgz","integrity":"sha512-XlUiGCuTmGx1Nx02vEObWn3TR3WshjNgiQYDfaKqyPSjv26RDz/ewdZYjZ00LO9plSFX1idKezgFGjt2V5wPoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEhU1I1GwJvgLMt6NRcRzrjXRrCNPk+dAQStvgL1l8WAiEAyg3jAnp0RUanUzRF9RvHZE+hSNBMV9f14l76w5r1K6o="}]},"maintainers":[{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chai-files-1.1.0.tgz_1459502236093_0.9414299582131207"}},"1.2.0":{"name":"chai-files","version":"1.2.0","description":"file system assertions for chai","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"homepage":"https://github.com/Turbo87/chai-files#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"assertion-error":"^1.0.1"},"gitHead":"196c802ea664f50014ee0be5283dcd47c9dd3c61","_id":"chai-files@1.2.0","_shasum":"866b56af24d43f2bd813544bcee45c9da2ad7a11","_from":".","_npmVersion":"2.15.0","_nodeVersion":"0.10.44","_npmUser":{"name":"turbo87","email":"tobias.bieniek@gmx.de"},"dist":{"shasum":"866b56af24d43f2bd813544bcee45c9da2ad7a11","tarball":"https://registry.npmjs.org/chai-files/-/chai-files-1.2.0.tgz","integrity":"sha512-6QiKXDgDWGeRFbZROIzKj9v91fv6S7ADN58q3Bg967ZbH60b+w+duyVMdVmRDx+Jx9HscJ2pUjJEo/MwKNsVTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSIzC+pdKoIyb/x9vU5q/rpk+oMTGQK9WjVNmdMnqyRQIgEEQSIzo7IikRHGRPIu0b5cLLUMTFgMfn999mHx/HMcA="}]},"maintainers":[{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chai-files-1.2.0.tgz_1460098859681_0.9059526317287236"}},"1.3.0":{"name":"chai-files","version":"1.3.0","description":"file system assertions for chai","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"homepage":"https://github.com/Turbo87/chai-files#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"assertion-error":"^1.0.1"},"gitHead":"732acd0375a74f3b9035b1e5ec9b3e9b900a73ea","_id":"chai-files@1.3.0","_shasum":"ff3e8c322dfc9966cfc54e120d922cbcced9f6e5","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.46","_npmUser":{"name":"turbo87","email":"tobias.bieniek@gmx.de"},"dist":{"shasum":"ff3e8c322dfc9966cfc54e120d922cbcced9f6e5","tarball":"https://registry.npmjs.org/chai-files/-/chai-files-1.3.0.tgz","integrity":"sha512-/w1Zv6VF2EH3rT7y6Qa7I2o9JhsfaBf6OW5lzoC7YKdVKMtQ6zB1nWYbqDeR5pBlW2D/EfQR8W8fCK6Mr15D3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkrynddiZsjRDwd6X3MXXGwOblqYl4uD+OhEFn821KVgIhALMpd63yihVedZOWw2OOd07xJZE5Boke3IfJQrZ0XEco"}]},"maintainers":[{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chai-files-1.3.0.tgz_1467787497273_0.07761715515516698"}},"1.4.0":{"name":"chai-files","version":"1.4.0","description":"file system assertions for chai","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"homepage":"https://github.com/Turbo87/chai-files#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"dependencies":{"assertion-error":"^1.0.1"},"gitHead":"c440741ce4d319338361d4275589e91aed5fc907","_id":"chai-files@1.4.0","_shasum":"0e25610fadc551b1eae79c2f4ee79faf2f842296","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.12.15","_npmUser":{"name":"turbo87","email":"tobias.bieniek@gmx.de"},"dist":{"shasum":"0e25610fadc551b1eae79c2f4ee79faf2f842296","tarball":"https://registry.npmjs.org/chai-files/-/chai-files-1.4.0.tgz","integrity":"sha512-tPTx7H2kpR+wILWHRx8RxpXcRUdc2uH8su505C9R3p5GA+eYbZBXuxWC0RZbyElYi7X7Fp/V/S2PQjkakrT1mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmE6in/1kcbFb1rC0RQTju6UDXuQ6NGxlQQ9nNdKc+lAiBP6UCBWEnZrQq6V8Aw2wl34FIQ3o+peY3j4q8axQBPaQ=="}]},"maintainers":[{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/chai-files-1.4.0.tgz_1468592590811_0.815157120116055"}}},"readme":"\nchai-files\n==============================================================================\n\n[![Build Status](https://travis-ci.org/Turbo87/chai-files.svg?branch=master)](https://travis-ci.org/Turbo87/chai-files)\n[![Build status](https://ci.appveyor.com/api/projects/status/github/Turbo87/chai-files?svg=true)](https://ci.appveyor.com/project/Turbo87/chai-files/branch/master)\n[![npm](https://img.shields.io/npm/v/chai-files.svg)](https://www.npmjs.com/package/chai-files)\n\nfile system assertions for chai\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nnpm install --save-dev chai-files\n```\n\nUsage\n------------------------------------------------------------------------------\n\nAfter importing `chai` add the following code to use `chai-files` assertions:\n\n```js\nvar chai = require('chai');\nvar chaiFiles = require('chai-files');\n\nchai.use(chaiFiles);\n\nvar expect = chai.expect;\nvar file = chaiFiles.file;\nvar dir = chaiFiles.dir;\n```\n\n\n### .to.exist\n\nCheck if a file or directory exist:\n\n```js\nexpect(file('index.js')).to.exist;\nexpect(file('index.coffee')).to.not.exist;\n\nexpect(dir('foo')).to.exist;\nexpect(dir('missing')).to.not.exist;\n```\n\n\n### .to.equal(...)\n\nCheck if the file content equals a string:\n\n```js\nexpect(file('foo.txt')).to.equal('foo');\nexpect(file('foo.txt')).to.not.equal('bar');\n\nexpect('foo').to.equal(file('foo.txt'));\nexpect('foo').to.not.equal(file('foo.txt'));\n```\n\n\n### .to.equal(file(...))\n\nCheck if the file equals another file:\n\n```js\nexpect(file('foo.txt')).to.equal(file('foo-copy.txt'));\nexpect(file('foo.txt')).to.not.equal(file('bar.txt'));\n```\n\n\n### .to.be.empty\n\nCheck if a file or directory is empty:\n\n```js\nexpect(file('empty.txt')).to.be.empty;\nexpect(file('foo.txt')).to.not.be.empty;\n\nexpect(dir('empty')).to.be.empty;\nexpect(dir('foo')).to.not.be.empty;\n```\n\n\n### .to.contain(...)\n\nCheck if a file contains a string:\n\n```js\nexpect(file('foo.txt')).to.contain('foo');\nexpect(file('foo.txt')).to.not.contain('bar');\n```\n\n\n### .to.match(/.../)\n\nCheck if a file matches a regular expression:\n\n```js\nexpect(file('foo.txt')).to.match(/fo+/);\nexpect(file('foo.txt')).to.not.match(/bar?/);\n```\n\n\nLicense\n------------------------------------------------------------------------------\nchai-files is licensed under the [MIT License](LICENSE).\n","maintainers":[{"name":"nathanhammond","email":"npm@nathanhammond.com"},{"name":"turbo87","email":"tobias.bieniek@gmx.de"}],"time":{"modified":"2022-06-13T05:50:58.114Z","created":"2016-03-31T19:14:27.077Z","1.0.0":"2016-03-31T19:14:27.077Z","1.1.0":"2016-04-01T09:17:18.317Z","1.2.0":"2016-04-08T07:01:02.158Z","1.3.0":"2016-07-06T06:45:00.449Z","1.4.0":"2016-07-15T14:23:13.402Z"},"homepage":"https://github.com/Turbo87/chai-files#readme","keywords":["assertions","testing","chai","chai-plugin","fs","filesystem"],"repository":{"type":"git","url":"git+https://github.com/Turbo87/chai-files.git"},"author":{"name":"Tobias Bieniek","email":"tobias.bieniek@gmail.com"},"bugs":{"url":"https://github.com/Turbo87/chai-files/issues"},"license":"MIT","readmeFilename":"README.md","users":{"erikvold":true}}