{"_id":"@delucis/reading-data-omit","_rev":"4-f979bab711bc98bb290351e38a5bb283","name":"@delucis/reading-data-omit","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@delucis/reading-data-omit","version":"0.1.0","author":{"url":"http://chrisswithinbank.net/","name":"Chris Swithinbank","email":"swithinbank@gmail.com"},"license":"GPL-3.0","_id":"@delucis/reading-data-omit@0.1.0","maintainers":[{"name":"delucis","email":"swithinbank@gmail.com"}],"homepage":"https://github.com/delucis/reading-data-omit#readme","bugs":{"url":"https://github.com/delucis/reading-data-omit/issues"},"dist":{"shasum":"ebd36676b69a08dbb36691e2cc94002164521661","tarball":"https://registry.npmjs.org/@delucis/reading-data-omit/-/reading-data-omit-0.1.0.tgz","integrity":"sha512-7j0qsl3xWMT4gb7PvNFezMYMpx1F4w+/fRgZpUVJrY3TjThaXcaLa7VSG6h7PZJFdIDuP+9tfu11XTGURXYKHQ==","signatures":[{"sig":"MEQCIApQ6DyurbmHYNvkSjlYnzclmXL88J3w8Ox+ocipIM9FAiBj9AJLppQOw0z6gL4a8lEp6uTcS3I0Y348/Hs/S8f2xg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"d27e33067dfdb8359cc781653dc8c2af5524f634","scripts":{"test":"nyc mocha --reporter spec","version":"npm run clean:docs && npm run build:docs && git add -A docs","coverage":"nyc report --reporter=text-lcov | coveralls","build:docs":"jsdoc --configure .jsdoc.json --verbose","clean:docs":"rimraf docs/","preversion":"npm run test","postversion":"git push --follow-tags"},"_npmUser":{"name":"delucis","email":"swithinbank@gmail.com"},"repository":{"url":"git+https://github.com/delucis/reading-data-omit.git","type":"git"},"_npmVersion":"5.4.0","description":"lodash.omit plugin for @delucis/reading-data.","directories":{"test":"test"},"_nodeVersion":"8.4.0","dependencies":{"lodash.omit":"^4.5.0"},"devDependencies":{"nyc":"^11.1.0","chai":"^4.1.1","jsdoc":"^3.5.4","mocha":"^3.5.0","minami":"^1.2.3","rimraf":"^2.6.1","coveralls":"^2.13.1","@delucis/reading-data":"^0.7.3"},"_npmOperationalInternal":{"tmp":"tmp/reading-data-omit-0.1.0.tgz_1503994335959_0.7187406395096332","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.1":{"name":"@delucis/reading-data-omit","version":"0.1.1","author":{"url":"http://chrisswithinbank.net/","name":"Chris Swithinbank","email":"swithinbank@gmail.com"},"license":"GPL-3.0","_id":"@delucis/reading-data-omit@0.1.1","maintainers":[{"name":"delucis","email":"swithinbank@gmail.com"}],"homepage":"https://github.com/delucis/reading-data-omit#readme","bugs":{"url":"https://github.com/delucis/reading-data-omit/issues"},"dist":{"shasum":"0bf2175569b02e3141e28bf259acd5e5f53798c2","tarball":"https://registry.npmjs.org/@delucis/reading-data-omit/-/reading-data-omit-0.1.1.tgz","integrity":"sha512-7pwA61+beJqzPrDC44lztKb21Mur0yoJhOOOKqfFAxvM10AbaLYMI+AgiH0l+PJ7AoDSgxlb2+xrhdG5KMUJqg==","signatures":[{"sig":"MEUCIQDhRmOpdBvJw9YSrOKiENYtJIp+hlDGLdKQPxu1g32xVAIgIFgSAu6Gdri6pRX85D1P8N+0c0JIGpVnlMDUaThPfHo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"68e4608c0ef8a3241db144534730f5aa33455959","scripts":{"test":"nyc mocha --reporter spec","version":"npm run clean:docs && npm run build:docs && git add -A docs","coverage":"nyc report --reporter=text-lcov | coveralls","build:docs":"jsdoc --configure .jsdoc.json --verbose","clean:docs":"rimraf docs/","preversion":"npm run test","postversion":"git push --follow-tags"},"_npmUser":{"name":"delucis","email":"swithinbank@gmail.com"},"repository":{"url":"git+https://github.com/delucis/reading-data-omit.git","type":"git"},"_npmVersion":"5.4.0","description":"lodash.omit plugin for @delucis/reading-data.","directories":{"test":"test"},"_nodeVersion":"8.4.0","dependencies":{"lodash.omit":"^4.5.0"},"devDependencies":{"nyc":"^11.1.0","chai":"^4.1.1","jsdoc":"^3.5.4","mocha":"^3.5.0","minami":"^1.2.3","rimraf":"^2.6.1","coveralls":"^2.13.1","@delucis/reading-data":"^0.7.3"},"_npmOperationalInternal":{"tmp":"tmp/reading-data-omit-0.1.1.tgz_1503997940041_0.7473174943588674","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2017-08-29T08:12:17.629Z","modified":"2025-03-12T12:20:52.068Z","0.1.0":"2017-08-29T08:12:17.629Z","0.1.1":"2017-08-29T09:12:21.838Z"},"bugs":{"url":"https://github.com/delucis/reading-data-omit/issues"},"author":{"url":"http://chrisswithinbank.net/","name":"Chris Swithinbank","email":"swithinbank@gmail.com"},"license":"GPL-3.0","homepage":"https://github.com/delucis/reading-data-omit#readme","repository":{"url":"git+https://github.com/delucis/reading-data-omit.git","type":"git"},"description":"lodash.omit plugin for @delucis/reading-data.","maintainers":[{"name":"delucis","email":"swithinbank@gmail.com"}],"readme":"# @delucis/reading-data-omit\n\n[![Build Status](https://travis-ci.org/delucis/reading-data-omit.svg?branch=master)](https://travis-ci.org/delucis/reading-data-omit)\n[![Coverage Status](https://coveralls.io/repos/github/delucis/reading-data-omit/badge.svg?branch=master)](https://coveralls.io/github/delucis/reading-data-omit?branch=master)\n[![npm (scoped)](https://img.shields.io/npm/v/@delucis/reading-data-omit.svg)](https://www.npmjs.com/package/@delucis/reading-data-omit)\n\nA plugin for [`@delucis/reading-data`](https://github.com/delucis/reading-data)\nthat allows easy use of [`lodash.omit`][592bfd42].\n\n  [592bfd42]: https://www.npmjs.com/package/lodash.omit \"lodas.omit NPM package\"\n\n\n## Installation\n\n```sh\nnpm install --save @delucis/reading-data-omit\n```\n\n\n## Usage\n\n```js\nconst RD = require('@delucis/reading-data')\nconst OMIT = require('@delucis/reading-data-omit')\n\nRD.preloadData({\n  myArticle: {\n    text: 'This is a short article that is well worth reading.',\n    meta: 'This is some superfluous metadata we’d rather not include'\n  }\n})\n\nRD.use(OMIT, {\n  scope: 'myArticle',\n  omit: 'meta'\n})\n\nRD.run().then((res) => {\n  console.log(res.data.myArticle)\n  // logs: { text: 'This is a short article that is well worth reading.' }\n})\n```\n\n\n## Options\n\nname        | type               | default       | description\n------------|--------------------|---------------|------------------------------\n`hooks`     | `String`, `Object` | `'process'`   | The `reading-data` hook that should process the scope, omitting keys. Can be scoped by passing an object with scopes as keys, hooks as values.\n`omit`      | `String`, `Array`  |               | The property/properties to be omitted from the original data.\n`scope`     | `String`, `Array`  | `'omit'` | The scope under which `reading-data` will store this plugin’s data.\n","readmeFilename":"README.md"}