{"_id":"chai-json","_rev":"5-29b535088a9aae55dab906841ff3c7d6","name":"chai-json","description":"A chai plugin to validate json files","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"chai-json","version":"0.1.0","description":"A chai plugin to validate json files","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/giper45/chai-json.git"},"keywords":["chai-json","array","assert","assertion","chai-plugin","json","objects","test","testing","chai"],"author":{"name":"giper"},"license":"MIT","bugs":{"url":"https://github.com/giper45/chai-json/issues"},"homepage":"https://github.com/giper45/chai-json#readme","dependencies":{"chai":"^3.5.0","jsonfile":"^3.0.0","underscore":"^1.8.3"},"gitHead":"36c87c706d41a4905e2e5e31f4f570f6b1a3ea0a","_id":"chai-json@0.1.0","_shasum":"efbd65b13e3067fb8fda7b7d79b972d6b04ddc2a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"giper","email":"g.per45@gmail.com"},"dist":{"shasum":"efbd65b13e3067fb8fda7b7d79b972d6b04ddc2a","tarball":"https://registry.npmjs.org/chai-json/-/chai-json-0.1.0.tgz","integrity":"sha512-LJ7EI4y+dy+0uIMhctjRlUqz6M3ga38jIAEfqBCkMdKHcPN2tCK2ofFB7rUOtf3HG9Y+tOwbzJab6PbJWPS/ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFE8Lg5sVu9guLUwJPMczR20xOsjfys8gn6aJU2S+3pNAiEAm1Uqdn5hXxUTdmkoZmAi/U2Q+nDOAZmzwMoIxEReqcM="}]},"maintainers":[{"name":"giper","email":"g.per45@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chai-json-0.1.0.tgz_1494496758785_0.23331906832754612"}},"0.1.1":{"name":"chai-json","version":"0.1.1","description":"A chai plugin to validate json files","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/giper45/chai-json.git"},"keywords":["chai-json","array","assert","assertion","chai-plugin","json","objects","test","testing","chai"],"author":{"name":"giper"},"license":"MIT","bugs":{"url":"https://github.com/giper45/chai-json/issues"},"homepage":"https://github.com/giper45/chai-json#readme","dependencies":{"chai":"^3.5.0","jsonfile":"^3.0.0","underscore":"^1.8.3"},"gitHead":"78408766d217bc3dd9ffeb009cc986e08fd0b5d3","_id":"chai-json@0.1.1","_shasum":"e66b74b8b6e791a92f6afe83470cfc493ae268fc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"giper","email":"g.per45@gmail.com"},"dist":{"shasum":"e66b74b8b6e791a92f6afe83470cfc493ae268fc","tarball":"https://registry.npmjs.org/chai-json/-/chai-json-0.1.1.tgz","integrity":"sha512-Iw1OKfOBdEnLtZKoAu3VD47NNKhVDD6UR1RNr451X4hvHCJ/+ZC+hsMduKwOqvTsSJN5iwYSFfB+bLcJc4SIbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBR0h5Q3ksI61SmeVETNiv+H5WocC9wdsKIsxjSlPS47AiB81Z+aY3UEWPEsbw1RsYSdJ/ndEPwUZo/qZS93FwFlqw=="}]},"maintainers":[{"name":"giper","email":"g.per45@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/chai-json-0.1.1.tgz_1494507046025_0.07365463185124099"}},"1.0.0":{"name":"chai-json","version":"1.0.0","description":"A chai plugin to validate json files","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/giper45/chai-json.git"},"keywords":["chai-json","array","assert","assertion","chai-plugin","json","objects","test","testing","chai"],"author":{"name":"giper"},"license":"MIT","bugs":{"url":"https://github.com/giper45/chai-json/issues"},"homepage":"https://github.com/giper45/chai-json#readme","dependencies":{"chai":"^3.5.0","jsonfile":"^3.0.0","underscore":"^1.8.3"},"gitHead":"5b3168a1d0e70694a7087194cd3b532592c0c660","_id":"chai-json@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"giper","email":"g.per45@gmail.com"},"dist":{"integrity":"sha512-p9eEYu3H2BkpU8PW8kqt0N6Ni6UG3LCCjlqHtZbrgvGRJYD4UnJuh704EFbGRxylzEPWsaOGhgXfdn0n1W3hhA==","shasum":"21af720ede51db7424634676ede151ef4002e3a4","tarball":"https://registry.npmjs.org/chai-json/-/chai-json-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOuuvioPoX/00Sh7btnpBiZgRENamGS7ek5gNaFP50MwIhAP8dl/iU8n44wyFkaMgNag4e6e21bag1Kwgtkts5l66m"}]},"maintainers":[{"name":"giper","email":"g.per45@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chai-json-1.0.0.tgz_1517391717748_0.0527476416900754"}}},"readme":"# chai-json\nA chai plugin to validate json files\n\n\n## Usage\n\n### server-side\n\nInstall from npm:\n\n    $ npm install chai-json\n\nHave chai use the chai-fs module:\n\n    var chai = require('chai');\n    chai.use(require('chai-json'));\n\n\n\n## Assertions\n\n### jsonFile()\n\nAssert that a file is a json\n \n\n\texpect(testFile).to.be.a.jsonFile();\n  \n\n\n\n### jsonObj()\n\nAssert that the jsonFile given is equal to an javascript object.\n     \n     expect(testFile).to.be.a.jsonFile().and.to.be.jsonObj(jsonObj);\n \n\n\n### jsonWithProps()\n\nAssert that the jsonFile contains an object with given properties\n```javascript\n\n    /* \n    Content of testFile:  \n [{\"repoName\":\"giper\",\"labName\":\"TelnetClientSniffing_1\",\"state\":\"STOPPED\"},{\"repoName\":\"giper\",\"labName\":\"ErrorSameSubnet\",\"state\":\"STOPPED\"},\n {\"repoName\":\"giper\",\"labName\":\"ErrorSamePort\",\"state\":\"STOPPED\"},    \n {\"repoName\":\"giper\",\"labName\":\"ErrorWrongAction\",\"state\":\"STOPPED\"},{\"repoName\":\"giper\",\"labName\":\"ErrorNoDefinedAction\",\"state\":\"NO_NETWORK\"},{\"repoName\":\"giper\",\"labName\":\"ErrorCopyFile\",\"state\":\"STOPPED\"},\n {\"repoName\":\"giper\",\"labName\":\"TestActionNoArgs\",\"state\":\"STOPPED\"}\n ]\n    */ \n    expect(testFile).to.be.a.jsonFile().and.contain.jsonWithProps({ repoName: 'giper' });\n```\n \n\n## Contributing\n\nContributions are welcome. Please follow the code, test and style patterns and keep Eslint happy. Look at Airbnb style guide for more informations. \n\n## Build & test\n\nInstall development dependencies in your git checkout:\n\n    $ npm install\n\nRun tests:\n\n    $ mocha test\n\n\n\n\n\n## License\n\nLicensed under the MIT license.\n","maintainers":[{"name":"giper","email":"g.per45@gmail.com"}],"time":{"modified":"2022-06-13T05:51:04.558Z","created":"2017-05-11T09:59:20.515Z","0.1.0":"2017-05-11T09:59:20.515Z","0.1.1":"2017-05-11T12:50:47.408Z","1.0.0":"2018-01-31T09:41:58.661Z"},"homepage":"https://github.com/giper45/chai-json#readme","keywords":["chai-json","array","assert","assertion","chai-plugin","json","objects","test","testing","chai"],"repository":{"type":"git","url":"git+https://github.com/giper45/chai-json.git"},"author":{"name":"giper"},"bugs":{"url":"https://github.com/giper45/chai-json/issues"},"license":"MIT","readmeFilename":"README.md"}