{"name":"blacklist","version":"1.1.0","description":"Returns a shallow copy of an object without blacklisted properties","main":"index.js","scripts":{"standard":"standard","test":"mocha --reporter list -t 20000 test/index.js"},"keywords":["blacklist","filter","object","utility"],"author":{"name":"Daniel Cousens"},"license":"MIT","devDependencies":{"mocha":"^2.2.1","standard":"^3.3.0"},"gitHead":"7d35f42848318db21493e984b947974140c96529","_id":"blacklist@1.1.0","_shasum":"fde6c639ed2108aa7a473e7e9449e4355201f3b2","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jedwatson","email":"jed.watson@me.com"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"jedwatson","email":"jed.watson@me.com"}],"dist":{"shasum":"fde6c639ed2108aa7a473e7e9449e4355201f3b2","tarball":"http://registry-npm.ywwl.com/blacklist/download/blacklist-1.1.0.tgz","integrity":"sha512-BZkEcS24ATRsfnZ59vWggEWcfKwGsKGDkhum44sSl2I6yR+/uZVrvFODYPZcT4dBzLQ3GL1mofQRbnXr/gX/5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUi78XnARzWymzSqAv8NGt2htChWJHV2i2iEllVtjR4wIhAOl+HikOBRPgyoHffAanlwY/t1nG8qjyJZSkGSg4xgvK"}],"size":2009,"noattachment":false,"key":"/blacklist/-/blacklist-1.1.0.tgz"},"directories":{},"readme":"# blacklist\n\n[![Build Status](https://travis-ci.org/dcousens/blacklist.png?branch=master)](https://travis-ci.org/dcousens/blacklist)\n[![Version](http://img.shields.io/npm/v/blacklist.svg)](https://www.npmjs.org/package/blacklist)\n\nThis module shallow copies an object, ignoring keys depending on the filter object passed to it.\n\nFilters can be provided as an object (truthy keys are blacklisted) or string arguments.\n\n### ES next alternative\n\nIf you can, use \n\n``` javascript\nvar { a, ... bc } = { a: 1, b: 2, c: 3 }\n```\n\n\n### Example\n``` javascript\nvar someInput = { a: 1, b: 2, c: 3 }\n\n// ...\n\nvar blacklist = require('blacklist')\n\nblacklist(someInput, 'b', 'c')\n// => { a: 1 }\n\nblacklist(someInput, {\n\ta: true,   // a will not be in the result\n\tb: false,  // b will be in the result\n\tc: 1 > 2   // false, therefore c will be in the result\n})\n// => { b: 2, c: 3 }\n```\n","publish_time":1427431510012,"_cnpm_publish_time":1427431510012,"dist-tags":{"latest":"1.1.4"}}