{"_id":"algolia-index-transform","_rev":"249-8a36b35757249a422e51132adf26bb50","name":"algolia-index-transform","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"algolia-index-transform","version":"1.0.0","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.0","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"}],"dist":{"shasum":"eed04d6f99999c8f3e76b6c605ef227d735473fd","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.0.tgz","integrity":"sha512-BUQCiG5plHCi+cO0jzrcfpgPoH6mfW9SfNO0pI7bB0H3TNUtZw9aSXB7Ws+Wke8klnwFNW9lhXUaHl/Hw/NOCw==","signatures":[{"sig":"MEUCIFRPYLTl1FEHK89rGQgkhrnsgEsCeISgNwq8xyycZCHWAiEAwR6jQr87VGYQkyArQYDtFoDHVnpw+vsPbsQmvij4hYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"35604a13cb7512a3053c03e23bc850a27f07dcb7","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.0.tgz_1511516666548_0.8770693822298199","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"algolia-index-transform","version":"1.0.1","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.1","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"}],"homepage":"https://github.com/therealwebby/algolia-index-mapiulation#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-mapiulation/issues"},"dist":{"shasum":"11ee69d71cf9d03b8f34eb12592b9f9e65fd8d34","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.1.tgz","integrity":"sha512-VQ/GbcHEBoqdjgKEZ9BoiKR8AtPkvzyHtz6449WKHVVLebpl+uagKqaV5npXuCeHZ6yeUEewyGJIWskOdKXI8Q==","signatures":[{"sig":"MEQCIAokDU7tlCtkrBWRF0LmilCI5SJyrUQmbdTm+mbK4M6IAiBFo5yN9uLU4YnqHenrVztbF8KsYn5Xe++NvBKJmJaZ+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"b5978d60972bf6749fd760a9f772e5bceb58f0d0","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-mapiulation.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.1.tgz_1511516952552_0.05819410039111972","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"algolia-index-transform","version":"1.0.2","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.2","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"}],"homepage":"https://github.com/therealwebby/algolia-index-mapiulation#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-mapiulation/issues"},"dist":{"shasum":"ea2661c6acfa6beb0759132ea32f7b1e66b17004","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.2.tgz","integrity":"sha512-/v4uQlVaH9G+vvZJRIsKWDQLa9PVRxJT7zMM425jlnWxNzD8Od+WvVUlkrmJw7TBpajBiEhuJKiA5FYJTRKG5A==","signatures":[{"sig":"MEYCIQDO0vNu8KTLdKzL+i8ECneOabpjzEKU+9lsQBwP0xTlmAIhAI0aDwU2vheeZZ7Il1iFTQQ02IoCqbCVjt1wlyjGs2NK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"bdbf972361fa7be38de717f8cc252335dbab00e4","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-mapiulation.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.2.tgz_1511517921582_0.4608469551894814","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"algolia-index-transform","version":"1.0.3","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.3","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"}],"homepage":"https://github.com/therealwebby/algolia-index-transform#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-transform/issues"},"dist":{"shasum":"f9dadd300a91e90541760083a2fa6947903b6103","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.3.tgz","integrity":"sha512-Ai7RzEV9ZjENQydsp5gdo1xUzyNs+TCCOmhR9U8TxRw1qTxxpWCIOr+3xMEv7IrsnkF8FxV70YLywOZrWgeRWw==","signatures":[{"sig":"MEYCIQDpgi6BrfJFo4YQIxPARHNugX00QnIa6AtpWyAp8D5L5wIhAMlIvUD9t5AJgUDvSNVsjAYTt8pfHB84L1O2UoVX05Xd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"24377c9fc93977cb678a4e2329972e141086e10d","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-transform.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.3.tgz_1511541330984_0.21853531757369637","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"algolia-index-transform","version":"1.0.4","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.4","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"},{"name":"samouss","email":"samuel.vllnt@gmail.com"},{"name":"ronanlevesque","email":"ronan.levesque@gmail.com"},{"name":"cbaptiste","email":"coquellebaptiste@gmail.com"},{"name":"raphi","email":"raphael.daguenet@algolia.com"},{"name":"speedblue","email":"support@algolia.com"},{"name":"bobylito","email":"bobylito@gmail.com"},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},{"name":"jerska","email":"matthieu.dumont@algolia.com"},{"name":"pixelastic","email":"tim@pixelastic.com"},{"name":"haroenv","email":"hello@haroen.me"},{"name":"iam4x","email":"iam4x@me.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"homepage":"https://github.com/therealwebby/algolia-index-transform#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-transform/issues"},"dist":{"shasum":"0b9fad7274a86185ae5c2ab82a61bc3ed42633c8","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.4.tgz","integrity":"sha512-VTuFkv7dm7VxLqOlP2kNhwcH1wgdpOVPpCB5OWd3U5MHmvsA9Te27mEfYMyio7b6sRrWITQ+uDLLy/H7tDKa9A==","signatures":[{"sig":"MEUCIEyIM1vpatRjgySEgzXyvKsfu8raNpR6zRwPqm29Uww9AiEApTlEKL4io5e13aPJ76lATm5FWyAiplPpxeexddKXYLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"78af840fcebea1c970ee4f653c3fc680b139b5cf","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-transform.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.4.tgz_1512584674790_0.07539167255163193","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"algolia-index-transform","version":"1.0.5","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.5","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"},{"name":"samouss","email":"samuel.vllnt@gmail.com"},{"name":"ronanlevesque","email":"ronan.levesque@gmail.com"},{"name":"cbaptiste","email":"coquellebaptiste@gmail.com"},{"name":"raphi","email":"raphael.daguenet@algolia.com"},{"name":"speedblue","email":"support@algolia.com"},{"name":"bobylito","email":"bobylito@gmail.com"},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},{"name":"jerska","email":"matthieu.dumont@algolia.com"},{"name":"pixelastic","email":"tim@pixelastic.com"},{"name":"haroenv","email":"hello@haroen.me"},{"name":"iam4x","email":"iam4x@me.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"homepage":"https://github.com/therealwebby/algolia-index-transform#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-transform/issues"},"dist":{"shasum":"bc394e59dfad0836f8570870fa1ba10931b85743","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.5.tgz","integrity":"sha512-QOeempMKrBfbOuZZgjOUPOvwS8YJkaqxufxNWCEyDC8hsxSPC8zskqQPjoqvPcdUm7QpYu8+8SD0BTnToDPdQw==","signatures":[{"sig":"MEYCIQDbpY8JWfd6Ajz8L3ciF0f9atiPtpwp2Olg6m7ApCn1CwIhAIKXXcF+b2+O/RitiGFA5A94wsUn88q/ODiOZnM9TIIT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"ee2ebb5f46cf7f2f4b827a2e316400cefeb7e47d","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-transform.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.5.tgz_1513083323410_0.5617969378363341","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"algolia-index-transform","version":"1.0.6","author":{"name":"Alex Webb"},"license":"ISC","_id":"algolia-index-transform@1.0.6","maintainers":[{"name":"therealwebby","email":"alex@alexjwebb.com"},{"name":"samouss","email":"samuel.vllnt@gmail.com"},{"name":"ronanlevesque","email":"ronan.levesque@gmail.com"},{"name":"cbaptiste","email":"coquellebaptiste@gmail.com"},{"name":"raphi","email":"raphael.daguenet@algolia.com"},{"name":"speedblue","email":"support@algolia.com"},{"name":"bobylito","email":"bobylito@gmail.com"},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},{"name":"jerska","email":"matthieu.dumont@algolia.com"},{"name":"pixelastic","email":"tim@pixelastic.com"},{"name":"haroenv","email":"hello@haroen.me"},{"name":"iam4x","email":"iam4x@me.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"homepage":"https://github.com/therealwebby/algolia-index-transform#readme","bugs":{"url":"https://github.com/therealwebby/algolia-index-transform/issues"},"dist":{"shasum":"8e5329b60ecdb2d7767f69af5b0bcb5add159769","tarball":"https://registry.npmjs.org/algolia-index-transform/-/algolia-index-transform-1.0.6.tgz","integrity":"sha512-LjwA3/0F+CoB6RXNTmmohxMhGwQhiEeKgbT/ZkGRv49UX2FNYLo7B1/hNt/wv1+PKTqRXdRszokxZKp1VNLLfA==","signatures":[{"sig":"MEYCIQCuifMhHXqjV58oOVyL6tHStoKreJ+U/mhuufWDwmMCowIhAKYxo8W9nU64BsK6YsmlTcbPqcRA/jRAi1BgsY8xWCdQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"783e30b6056867370889a20d32d939abc019a0a4","scripts":{"lint":"eslint .","test":"npm run lint","lint:fix":"npm run lint -- --fix"},"_npmUser":{"name":"therealwebby","email":"alex@alexjwebb.com"},"repository":{"url":"git+https://github.com/therealwebby/algolia-index-transform.git","type":"git"},"_npmVersion":"5.5.1","description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"colors":"^1.1.2","fs-extra":"^4.0.2","algoliasearch":"^3.24.6"},"devDependencies":{"eslint":"^4.11.0","prettier":"^1.8.2","babel-eslint":"^8.0.2","eslint-plugin-import":"^2.8.0","eslint-config-algolia":"^12.0.0","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1"},"_npmOperationalInternal":{"tmp":"tmp/algolia-index-transform-1.0.6.tgz_1516200365814_0.5787192797288299","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-11-24T09:44:27.412Z","modified":"2026-09-16T10:11:55.694Z","1.0.0":"2017-11-24T09:44:27.412Z","1.0.1":"2017-11-24T09:49:13.633Z","1.0.2":"2017-11-24T10:05:21.662Z","1.0.3":"2017-11-24T16:35:31.797Z","1.0.4":"2017-12-06T18:24:36.371Z","1.0.5":"2017-12-12T12:55:24.325Z","1.0.6":"2018-01-17T14:46:07.318Z"},"bugs":{"url":"https://github.com/therealwebby/algolia-index-transform/issues"},"author":{"name":"Alex Webb"},"license":"ISC","homepage":"https://github.com/therealwebby/algolia-index-transform#readme","repository":{"url":"git+https://github.com/therealwebby/algolia-index-transform.git","type":"git"},"description":"A selection of methods to transform an exisiting index using map, reduce or filter and push to a brand new index.","maintainers":[{"email":"hello@haroen.me","name":"haroenv"},{"email":"contact@ymammar.com","name":"tkrugg"},{"email":"cyril.descossy@algolia.com","name":"cyril.descossy"},{"email":"emmanuel.fortin@algolia.com","name":"emmanuel.fortin"},{"email":"robert.mogos@algolia.com","name":"robertmogos"},{"email":"stephane.jin@algolia.com","name":"jinste"},{"email":"team-event-experiences-engineering@algolia.com","name":"eventexperiences_algolia"},{"email":"admin@algolia.com","name":"alg-admin"},{"email":"michael.bramwell@algolia.com","name":"mbramwell-algolia"},{"email":"vincentalindogan@gmail.com","name":"vincentalindogan"},{"email":"alex@alexjwebb.com","name":"therealwebby"}],"readme":"# Algolia Index Transform\n\nA selection of methods to transform an index using `map`, `reduce` or `filter`.\nand push to a brand new index.\n\n### Install\n\n##### Node Using NPM\n\n`npm install algolia-index-transform`\n\n##### Node Using yarn\n\n`yarn add algolia-index-transform`\n\n### Set Up\n\nOnce installed, you will need to initalize the Algolia Index Transform as below.\nEach property is required.\n\n```js\nconst AlgoliaIndexTransform = require('algolia-index-transform');\n\nconst algoliaIndexTransform = new AlgoliaIndexTransform({\n  sourceApplicationID: 'xxxxxxxxxx',\n  sourceApiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n  sourceIndexName: 'an existing index',\n  destinationApplicationID: 'xxxxxxxxxx',\n  destinationApiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n  destinationIndexName: 'a new index',\n  limit: 20000,\n  requestOptions: {\n    attributesToRetrieve: ['*']\n  },\n  copySettings: false\n});\n```\n\n### Setting properties\n\n| Paramater                   | Type      | Description                                                                                                                                                                        |\n| :-------------------------- | :-------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `sourceApplicationID`       | `String`  | The Application ID where the current index resides                                                                                                                                 |\n| `sourceApiKey`              | `String`  | The API Key for the app where the current index resides                                                                                                                            |\n| `sourceIndexName`           | `String`  | The index name of the current index                                                                                                                                                |\n| `destinationApplicationID`  | `String`  | The Application ID of where you would like to add the index                                                                                                                        |\n| `destinationApiKey`         | `String`  | The API Key for the new index                                                                                                                                                      |\n| `destinationIndexName`      | `String`  | The new index name                                                                                                                                                                 |\n| `limit` (Optional)          | `Number`  | Optional: Limit the amount of records to transfer                                                                                                                                  |\n| `requestOptions` (Optional) | `Object`  | Optional: Object containing request options for [browseAll](https://www.algolia.com/doc/api-reference/api-methods/browse/?language=javascript#browse-compatible-search-parameters) |\n| `copySettings` (Optional)   | `Boolean` | Optional: Copy destination settings with the transformation                                                                                                                        |\n\n### Usage\n\n#### Copy\n\n```js\nalgoliaIndexTransform.copy();\n```\n\n#### Map\n\n```js\nalgoliaIndexTransform.map(item => ({\n  id: item.id\n}));\n```\n\n#### Filter\n\n```js\nalgoliaIndexTransform.filter(item => item.popular === true);\n```\n\n#### Reduce\n\n```js\nalgoliaIndexTransform.reduce((acc, cur) => acc + cur);\n```\n","readmeFilename":"README.md"}