{"_id":"@atsjj/btreemap","_rev":"1-12358a52c05956c91b64ec7bd0b4b245","name":"@atsjj/btreemap","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@atsjj/btreemap","version":"0.1.0","description":"BTreeMap is a library that implements Map based on a B-Tree.","homepage":"https://github.com/atsjj/btreemap","repository":{"type":"git","url":"git+https://github.com/atsjj/btreemap.git"},"author":{"name":"Steve Jabour","email":"steve@jabour.me","url":"https://github.com/atsjj"},"license":"MIT","module":"dist/esm/mod.js","main":"dist/cjs/mod.js","publishConfig":{"access":"public"},"scripts":{"build":"deno run -A --unstable build.ts","test":"yarn test:fmt && yarn test:lint && yarn test:test","test:fmt":"deno fmt --check","test:lint":"deno lint --unstable","test:test":"deno test"},"release-it":{"hooks":{"after:bump":["yarn build"],"after:release":["rm -rf dist"]},"plugins":{"release-it-lerna-changelog":{"infile":"CHANGELOG.md","launchEditor":true}},"github":{"release":true,"tokenRef":"GITHUB_AUTH"},"npm":{"publish":true}},"gitHead":"f7cc3074ce4332a68209cb4e06c5afef399c1a8e","bugs":{"url":"https://github.com/atsjj/btreemap/issues"},"_id":"@atsjj/btreemap@0.1.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-G5wahXv2NkzHrS5jt9KWLPjx/OOF2wd5Kc/mzlAzDyMlEiZMD8UJO/Q771d9YIkHfTNKc1NDVvyr5sE77yQ5xw==","shasum":"c5fcf3def045bd53aced87ff93d88f65b46cda69","tarball":"https://registry.npmjs.org/@atsjj/btreemap/-/btreemap-0.1.0.tgz","fileCount":23,"unpackedSize":40453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflmt4CRA9TVsSAnZWagAAr+kQAI2JjcyiX4etJsgZH4BC\ntxpARR0ncakxqGlnor/6cm2+p0FV5mr981/hv/5gSOd7ErW0xMzLCf34z0EK\n61IG3J0mFPLYLywpLJzGk390blIj1P1gmpVBzPrApxa35PJIZWNZburFto/F\nBMuefiuDhPUdKyaCw4d6du0Y9YHpxGLflZPFVuDejV8GkXASIbUFsLcIm20x\nQre7obOfL93pmfkcspqMnSggSthrKP2Z/UxoNCBXTRfQkxMrU+VcKnSBXPZG\n6dL2u9Z2gi2Bz3N1/SSZ9tXmusWxTmx7TNb6FbjEtaRMIBp/bLBfKs+H/r4k\nuGZKqtUri/qwsQ2ekjTpkxaF2/TDj6iQromXSqR5oJ7BR6JyPhCgceCHiVTx\n6zOaX7WqS03r9/ohxYD2EYzPxtpgPhxI8hrsCZwBYhfURlGq4lmQdmJ6zQ5g\n4VuMJmNrdRmCUMkHqbMsUuwo6ZZzlgicyPrqWHIRT1Vz3n2536UtW34eHhSV\n8d3Zd03oUv6VNH1oQvREBaF4fsYjyqfMI6jw6PJbCIuIkSzFNfTAuZMr13XZ\ndIj0lHsIMr8N+sPlzRTOkOT7lnjEasUfuPJJRq1ZSwax9/9kM1SBLZfBt/1i\nqVE6kSteOV8i5tnPBhFc2s/dM5Vo16Nx+vZPwXhLU76tv4QeVEvs8yWS17pO\nJxWV\r\n=0SIR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACwhmV/By1jju2ROu7ZUu6hLpiHcNfedOGWSm3zvJdxAiAhhSjfO/yu5jk9pBJKfqiugm9Y08I6TSOGdBkmSn/IsA=="}]},"maintainers":[{"name":"atsjj","email":"steve@jabour.me"}],"_npmUser":{"name":"atsjj","email":"steve@jabour.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/btreemap_0.1.0_1603693432407_0.7986089269363268"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-26T06:23:52.375Z","0.1.0":"2020-10-26T06:23:52.558Z","modified":"2022-04-04T16:19:54.741Z"},"maintainers":[{"name":"atsjj","email":"steve@jabour.me"}],"description":"BTreeMap is a library that implements Map based on a B-Tree.","homepage":"https://github.com/atsjj/btreemap","repository":{"type":"git","url":"git+https://github.com/atsjj/btreemap.git"},"author":{"name":"Steve Jabour","email":"steve@jabour.me","url":"https://github.com/atsjj"},"bugs":{"url":"https://github.com/atsjj/btreemap/issues"},"license":"MIT","readme":"# BTreeMap\n\n[![build](https://img.shields.io/github/workflow/status/atsjj/btreemap/ci)](https://github.com/atsjj/btreemap/actions?query=workflow%3Aci)\n[![doc](https://img.shields.io/badge/deno-doc-blue)](https://doc.deno.land/https/deno.land/x/btreemap/mod.ts)\n[![npm](https://img.shields.io/npm/v/@atsjj/btreemap)](https://www.npmjs.com/package/@atsjj/btreemap)\n\nBTreeMap is a library that implements Map based on a B-Tree. BTreeMap has first-class\nsupport for Deno and TypeScript, but also ships with support for Node CommonJS and ES Modules.\n\nBTreeMap is based on the work of [Ruby-BTree](https://github.com/seifertd/Ruby-BTree).\n\n## Install (Node)\n\n```\nnpm install --save @atsjj/btreemap;\n```\n\n## Usage\n\n### Deno\n\n```ts\nimport { Tree } from \"https://deno.land/x/btreemap/mod.ts\";\n\nconst tree: Tree<string, string> = new Tree();\n\ntree.set(\"key 1\", \"value 1\");\ntree.set(\"key 3\", \"value 3\");\ntree.set(\"key 2\", \"value 2\");\n\nconsole.log(tree.get(\"key 1\")) // \"value 1\"\nconsole.log(tree.get(\"key 3\")) // \"value 3\"\nconsole.log(tree.get(\"key 2\")) // \"value 2\"\n```\n\n### Browser\n\n```html\n<script type=\"module\">\n  import { Tree } from \"https://cdn.skypack.dev/@atsjj/btreemap\";\n\n  const tree: Tree<string, string> = new Tree();\n\n  tree.set(\"key 1\", \"value 1\");\n  tree.set(\"key 3\", \"value 3\");\n  tree.set(\"key 2\", \"value 2\");\n\n  console.log(tree.get(\"key 1\")) // \"value 1\"\n  console.log(tree.get(\"key 3\")) // \"value 3\"\n  console.log(tree.get(\"key 2\")) // \"value 2\"\n</script>\n```\n\n### Node / ESM\n\n```javascript\nimport { Tree } from \"@atsjj/btreemap\";\n\nconst tree: Tree<string, string> = new Tree();\n\ntree.set(\"key 1\", \"value 1\");\ntree.set(\"key 3\", \"value 3\");\ntree.set(\"key 2\", \"value 2\");\n\nconsole.log(tree.get(\"key 1\")) // \"value 1\"\nconsole.log(tree.get(\"key 3\")) // \"value 3\"\nconsole.log(tree.get(\"key 2\")) // \"value 2\"\n```\n\n### Node / CJS\n\n```javascript\nconst { Tree } = require(\"@atsjj/btreemap\");\n\nconst tree: Tree<string, string> = new Tree();\n\ntree.set(\"key 1\", \"value 1\");\ntree.set(\"key 3\", \"value 3\");\ntree.set(\"key 2\", \"value 2\");\n\nconsole.log(tree.get(\"key 1\")) // \"value 1\"\nconsole.log(tree.get(\"key 3\")) // \"value 3\"\nconsole.log(tree.get(\"key 2\")) // \"value 2\"\n```\n","readmeFilename":"README.md"}