{"_id":"@amaui/hash-table","_rev":"1-8d9967f1448461cc6d015fecad3e8668","name":"@amaui/hash-table","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amaui/hash-table","version":"1.0.0","description":"Hash table","repository":{"type":"git","url":"https://github.com/amaui-org/amaui-hash-table.git"},"author":{"name":"Lazar","email":"lazareric2@gmail.com"},"license":"MIT","private":false,"main":"./src/index.ts","keywords":["hash-table","frontend","front-end","backend","back-end","web","browser","javascript","js","typescript","node","nodejs","library","amaui","utils"],"scripts":{"prebuild":"rimraf build","build":"node utils/js/build.js","release":"yarn test && yarn build && npm publish ./build","lint":"tslint -c tslint.json -p tsconfig.json","type":"tsc --noEmit -p tsconfig.json","cov":"cross-env NODE_ENV=test amaui-test","test:pre":"pm2 update && pm2 delete all && pm2 start utils/js/test/app.js && wait-on http://localhost:4000","test:post":"pm2 delete all","test":"yarn lint && yarn type && yarn build && yarn test:pre && yarn cov && yarn test:post"},"dependencies":{"@amaui/utils":"^1.0.11445","@babel/runtime":"^7.18.3"},"devDependencies":{"@amaui/models":"^1.0.1111","@amaui/test":"^1.0.11150","@babel/cli":"^7.16.0","@babel/core":"^7.16.0","@babel/plugin-proposal-class-properties":"^7.17.12","@babel/plugin-proposal-object-rest-spread":"^7.18.0","@babel/plugin-transform-runtime":"^7.16.4","@babel/preset-env":"^7.16.4","@babel/preset-typescript":"^7.16.0","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.6","@rollup/plugin-replace":"^3.0.0","@types/node":"^16.11.10","cors":"^2.8.5","cross-env":"^7.0.3","dotenv":"^10.0.0","express":"^4.17.2","fast-glob":"^3.2.7","fs-extra":"^10.0.0","playwright":"^1.17.1","pm2":"^5.1.2","react":"^17.0.2","rimraf":"^3.0.2","rollup":"^2.60.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-size-snapshot":"^0.12.0","rollup-plugin-terser":"^7.0.2","ts-node":"^10.4.0","tslint":"^6.1.3","typescript":"^4.5.2","wait-on":"^6.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"sideEffects":false,"engines":{"node":">=12.0.0","yarn":">=1.22"},"licenseText":"MIT License\n\nCopyright (c) Lazar Eric <lazareric2@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@amaui/hash-table@1.0.0","dist":{"shasum":"d1e8eec5034db7702aa1763e57a1e6cc02c30ae0","integrity":"sha512-BMoocVMQBzcPvTMy8UXxn4n2iT/znKwmwq3OBDEB9GWz/PVYxuMb2DKwFC3UDVZsj/s2HBHpuYE/2rjidaeHcg==","tarball":"https://registry.npmjs.org/@amaui/hash-table/-/hash-table-1.0.0.tgz","fileCount":25,"unpackedSize":32778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLSx80pLmqUEGoDdEBxcuLr24ksIRVv/oZ4L1Qk6hkxAIgbAb6MY6HvLgXyzmWZTrrRpFU2ABAG1VE/zlNlBr74CI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpKCMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRMhAAluyiQ/tQDNWoThUbjUAbKv9ZzBHNEA4rL0OZEodzsefGOaJR\r\n6o2z1+O79GWEwdb7x4JfzKg5MlHF2eDrNz8xaTJ5UQp/OD+zAg5OyDN7UhLQ\r\nCbPw2EtH6n30iPbig/+H9JB5RUn/X5jMhydmPR3xlCU83ZU6hL19WrllhbtF\r\n7cuhoWKZ0K2iL0QW703fwNt53EgGCLu3t3F1aCp+8mJ9/4TWmRYFlNKcGaJ8\r\n0XG6lt6el+RCuo4JqVrkRDiB/w1ETjzWRnrrvKjsceNZQVBdG7PPxubWb/Vi\r\nkzm3fh5sME4qaEbc+RqN17gyME/OP0/Ah0119LRlEKXLO4VpyR9O4xNWGqcL\r\nZEaCHtwpmRX8E6PgqMvTi98XB3xzmZO9Db+7eyvhpQl5LzEzm3fDEdD8XhwC\r\nseqpfCyBTV91wfKh/bPAbwOPm5OPEFoT+IJOjwDXCkeExnCQZ1gP+xuLJmMO\r\n/2UM4R3cQuEFfM58zq4cz3VbAMV/OyNZBp3aI4YMXXWF3uAofNw34n3KdxM5\r\nd9CkQckAIQFlYK9qvw848rW+VLMejrB/nermPjDMo6kwemLZcg1v8vaMBa1n\r\nyiCLNk2o4Q5fEv31yWM3qK2APaib1Zw9s50D0lPJdsIUreiZAEH//Jgw2iPG\r\nTgxzlFpksm4Umi12T0WD5TfvA+0GDIa/IZ4=\r\n=bMsV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lazareric","email":"lazareric.com@gmail.com"},"directories":{},"maintainers":[{"name":"lazareric","email":"lazareric.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hash-table_1.0.0_1671733388357_0.3914735445135986"},"_hasShrinkwrap":false},"1.0.1":{"name":"@amaui/hash-table","version":"1.0.1","description":"Hash table","repository":{"type":"git","url":"git+https://github.com/amaui-org/amaui-hash-table.git"},"author":{"name":"Lazar","email":"lazareric2@gmail.com"},"license":"MIT","private":false,"main":"./index.js","keywords":["hash-table","frontend","front-end","backend","back-end","web","browser","javascript","js","typescript","node","nodejs","library","amaui","utils"],"dependencies":{"@amaui/utils":"^1.0.11445","@babel/runtime":"^7.18.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"sideEffects":false,"engines":{"node":">=12.0.0","yarn":">=1.22"},"module":"./esm/index.js","types":"./index.d.ts","gitHead":"3a0492ec537fab6a6b1716cc0e084cae01214e2d","bugs":{"url":"https://github.com/amaui-org/amaui-hash-table/issues"},"homepage":"https://github.com/amaui-org/amaui-hash-table#readme","_id":"@amaui/hash-table@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-6YTVLuyzBq76O/KIAH0JJjCd+n1hAKQX4cU7RSiUfPTXmIVGrNRfqfpL7PxwPQBWO26JoTbjMiIH79ecxEGBxQ==","shasum":"e0316b4ff761c71728edc05f8b3b65ddb92a0ed0","tarball":"https://registry.npmjs.org/@amaui/hash-table/-/hash-table-1.0.1.tgz","fileCount":11,"unpackedSize":22610,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/LPxOqH8F8Gzy8M18QJhMkZVyVdltJedAbnGTyOl5dwIhAK2TqVD9br/nFQP9hBxqV1qecU2i4RU4kkL3eJRDJcCs"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpKGoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbbhAApI3NkkrFSL7VLpEpEp8IA8/i0XkHpWrsIJJmZEjeeEfX500j\r\nrE2fP3gIj03QMhRCdKdtatjOBmh3p1LWracLhN+IizK4g07FVajmcso0Bryz\r\nHZpsGCN+RYmcJc2y/8OZZFhYxrt7vPR4lb1XKOWFQUL5cAjt+SmPjf2wCfa8\r\nhX+T3EZNRZ5caPCXTZI5LICbwwtQfji1DcsWySbzk2D5NtyJkZMb3Jn85tds\r\nDPN3tMpRLXkhn5dQjGaEuMdOm7sYqMguWBryrzfka0J6fUWsYd51h8tt57oa\r\nLsel6ACegDuNlEsjcc7C7QxuMDRI/b9+tn3I2+yBxOfST63v4ZSC3hufaqjr\r\nqlRllV2+tTfyrENWAm+BzeckfpSSoZNSJw1hp9SyN7F4nvytgf3885A1waPp\r\nQxqbf0CwjM6uBzqtZMhey63Iv+pwvq/e3UhCqB2BwGmwAGWvgpNqhftkVz47\r\nPELxdkq/N+OMihUObVCqtb1obEK3xWET9tjKDEIWzlO85xje9nCLGOR1J7ue\r\ne+o+61lYTB4cLMiYgmaelQTpu0xDFK/d5tGMWnJaItBlsJ6E4waBSqs+vTRH\r\nKHJssNPlhANxXjsR2y2F3OMy3omB2Vu5dNmzsJHwO3BGZ6x6nVpt9KhjHoK+\r\n6yarObNrkQPeMiI1EhnWudOWTOOXn1xjz1Y=\r\n=s91Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lazareric","email":"lazareric.com@gmail.com"},"directories":{},"maintainers":[{"name":"lazareric","email":"lazareric.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hash-table_1.0.1_1671733672036_0.3091041229067888"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-22T18:23:08.247Z","1.0.0":"2022-12-22T18:23:08.535Z","modified":"2022-12-22T18:27:52.466Z","1.0.1":"2022-12-22T18:27:52.344Z"},"maintainers":[{"name":"lazareric","email":"lazareric.com@gmail.com"}],"description":"Hash table","keywords":["hash-table","frontend","front-end","backend","back-end","web","browser","javascript","js","typescript","node","nodejs","library","amaui","utils"],"repository":{"type":"git","url":"git+https://github.com/amaui-org/amaui-hash-table.git"},"author":{"name":"Lazar","email":"lazareric2@gmail.com"},"license":"MIT","readme":"\n</br >\n</br >\n\n<p align='center'>\n  <a target='_blank' rel='noopener noreferrer' href='#'>\n    <img src='utils/images/logo.svg' alt='amaui logo' />\n  </a>\n</p>\n\n<h1 align='center'>amaui Hash table</h1>\n\n<p align='center'>\n  Hash table\n</p>\n\n<br />\n\n<h3 align='center'>\n  <sub>MIT license&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Production ready&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>UMD 1.5kb gzipped&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>100% test cov&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Browser and Nodejs</sub>\n</h3>\n\n<p align='center'>\n  <sub>Very simple code&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Modern code&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Junior friendly&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Typescript&nbsp;&nbsp;&nbsp;&nbsp;</sub>\n  <sub>Made with :yellow_heart:</sub>\n</p>\n\n<br />\n\n## Getting started\n\n### Add\n\n```sh\n  // yarn\n  yarn add @amaui/hash-table\n\n  // npm\n  npm install @amaui/hash-table\n```\n\n### Use cases\n- Indexing data\n- Caching\n- Storage for data, for efficient quering\n- Storing relationships between data\n- etc.\n\n### Use\n\n```javascript\n  import AmauiHashTable from '@amaui/hash-table';\n\n  // Make a new hash table instance\n  const amauiHashTable = new AmauiHashTable();\n\n  // Add values\n  amauiHashTable.set('a', 14).set('a1', 114);\n\n  amauiHashTable.get('a');\n  // 14\n\n  amauiHashTable.get('a14');\n  // undefined\n\n  // Remove\n  amauiHashTable.remove('a');\n  // true\n\n  amauiHashTable.get('a');\n  // undefined\n```\n\n### Dev\n\nInstall\n\n```sh\n  yarn\n```\n\nTest\n\n```sh\n  yarn test\n```\n\n### Prod\n\nBuild\n\n```sh\n  yarn build\n```\n\n### Docs\n\nMight be soon...\n","readmeFilename":"README.MD","homepage":"https://github.com/amaui-org/amaui-hash-table#readme","bugs":{"url":"https://github.com/amaui-org/amaui-hash-table/issues"}}