{"_id":"object-filter-sequence","_rev":"5-564aed6210d257e48a6af1a581330eae","name":"object-filter-sequence","description":"Apply a sequence of filter functions to an object","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"object-filter-sequence","version":"1.0.0","keywords":["object","filter","sequence"],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"stephen.belanger@elastic.co"},"license":"MIT","_id":"object-filter-sequence@1.0.0","maintainers":[{"name":"qard","email":"admin@stephenbelanger.com"}],"homepage":"https://github.com/elastic/object-filter-sequence#readme","bugs":{"url":"https://github.com/elastic/object-filter-sequence/issues"},"dist":{"shasum":"10bb05402fff100082b80d7e83991b10db411692","tarball":"https://registry.npmjs.org/object-filter-sequence/-/object-filter-sequence-1.0.0.tgz","fileCount":5,"integrity":"sha512-CsubGNxhIEChNY4cXYuA6KXafztzHqzLLZ/y3Kasf3A+sa3lL9thq3z+7o0pZqzEinjXT6lXDPAfVWI59dUyzQ==","signatures":[{"sig":"MEQCIHKNn2ynPFNL/fVuGd5fDeNW7rzDXHXAuq5796HgKVMBAiABHtLRdeURWlN9UQvh8kjLlwS2+BBVOkmdc8x6zLpyKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUO3+CRA9TVsSAnZWagAAVnMP/3d9ZXO5wQ24Cdv6e9+f\nJML4OJOoqoXgR2QaI964O+7xpH2eWEj/Uapv46P8QEBBhvMln+CUl4BgK0+Y\nsKS93vSZ1TZLLz/DiniwOt9CwWnkJUQY8rLQ2sLOUmV6+mB/5RYQqiES8ZZi\nmAadj3k4Jwm1S5n/IrsS/voppGy7WJ+ViI9lmbZrJdAcEZK2TNae2MWczdvi\nMXndwz3cQNgpMTHUbqxv7DQ5bL8nFIx2q3XQ0kHcap7kHPQXeVGtBhUDtGGy\nbznSJy2TKAZ++AB9Fa7lYGPylUKms999xmdHC+1Tvd19xaCYyTDxkCyt+tyM\nXWOM8eyXdOtQ2j2j011ZWJbmnU2GPzi7vE0hri0uSTMlqlKgOczwnHDTFJHh\nJzOHwev41c5PHjGl95fRuvxxeSNbIcBjFU3WGg1TqYP7g0aqzfUKpUaO5JpD\nC7aZlX2kwLWzKHiQh4bFHrysiHaxhBDRPxRtF35ezYDiltw95MovaV3BC7OE\nZzYk0Kramz3U3v7jWrfYI7tdWgFdtM37Q0At5AsDOuPBvHxBOjqxuPAVQsZk\nkVv66vju00zn7YRR0PTUb1oH0TB0lg1okN1aWS1UeCsmCZP6HK4QHCoq9yhr\nxerqunWmNmOcTX74BZ/NkBss875XbR6c5yTkEYeKm8X22qO7bpGgYoaORZD6\ns764\r\n=HxcD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"56658591a93926e1f003ddf7134277fb70c9af54","scripts":{"test":"nyc tape test.js","pretest":"standard","coverage":"nyc report --reporter=text-lcov > coverage.lcov && codecov","precoverage":"npm run test"},"_npmUser":{"name":"qard","email":"admin@stephenbelanger.com"},"repository":{"url":"git+https://github.com/elastic/object-filter-sequence.git","type":"git"},"_npmVersion":"6.4.1","description":"Apply a sequence of filter functions to an object","directories":{},"_nodeVersion":"10.14.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.1.0","tape":"^4.0.0","codecov":"^3.1.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/object-filter-sequence_1.0.0_1548807677413_0.6069250268586401","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-01-30T00:21:17.413Z","modified":"2024-06-24T15:06:33.808Z","1.0.0":"2019-01-30T00:21:17.494Z"},"maintainers":[{"email":"trentm@gmail.com","name":"trentm"},{"email":"admin@stephenbelanger.com","name":"qard"},{"email":"astorm@alanstorm.com","name":"alanstorm"}],"author":{"url":"https://github.com/qard","name":"Stephen Belanger","email":"stephen.belanger@elastic.co"},"repository":{"url":"git+https://github.com/elastic/object-filter-sequence.git","type":"git"},"keywords":["object","filter","sequence"],"license":"MIT","homepage":"https://github.com/elastic/object-filter-sequence#readme","bugs":{"url":"https://github.com/elastic/object-filter-sequence/issues"},"readme":"# object-filter-sequence\n\n[![npm](https://img.shields.io/npm/v/object-filter-sequence.svg)](https://www.npmjs.com/package/object-filter-sequence)\n[![Build status](https://travis-ci.org/elastic/object-filter-sequence.svg?branch=master)](https://travis-ci.org/elastic/object-filter-sequence)\n[![codecov](https://img.shields.io/codecov/c/github/elastic/object-filter-sequence.svg)](https://codecov.io/gh/elastic/object-filter-sequence)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nThis module provides an interface to apply a sequence of filters to an object. It is a subclass of Array, so any array method can be used on it.\n\n## Installation\n\n```\nnpm install object-filter-sequence\n```\n\n## Example Usage\n\n```js\nconst Filters = require('object-filter-sequence')\n\nconst filters = new Filters()\n\nfilters.push(previous => {\n  const next = {}\n  next.key = previous.key.toUpperCase()\n  return next\n})\n\nfilters.push(previous => {\n  const next = {}\n  next.key = previous.key.reverse()\n  return next\n})\n\nfilters.process({ key: 'value' }) // { key: 'EULAV' }\n```\n\n## API\n\n### `filters.process(object)`\n\nThis is the only unique method from the Array base class. It is used to apply the filters in the array to the provided object.\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}