{"_id":"@cobular/resist-o-calc","_rev":"1-4d5d8a18888b68c677e8319ef7895c09","name":"@cobular/resist-o-calc","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@cobular/resist-o-calc","collaborators":["Your Name <you@example.com>"],"version":"0.1.0","module":"resist_o_calc.js","types":"resist_o_calc.d.ts","sideEffects":["./resist_o_calc.js","./snippets/*"],"gitHead":"5c5e3fc82b8edc2b06e889e33431b77367b3d6e9","description":"A simple, helpful WASM library to calculate one thing: what pair of normal e-series resistors gets you closest to the desired resistance you want for some resistor divider?","_id":"@cobular/resist-o-calc@0.1.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-bx1ZvSzufClFdQ0/EJjqCtAN5GerrCBFqQOHLS84V1UQNE7D+GDfVnDZV2yPPSAj04gTN6Jjepulfihh9Nuuig==","shasum":"2fa89bf260555e224f7468160d30729cda70c021","tarball":"https://registry.npmjs.org/@cobular/resist-o-calc/-/resist-o-calc-0.1.0.tgz","fileCount":6,"unpackedSize":32397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYUvy7GbUwQUSeMoE1fq0HNQ49cKts+7dcMqeiDYKuPgIgTjfug6okF/nWXZbKAKEKmXIlzhKzcLFXHSFNuC5wGOM="}]},"_npmUser":{"name":"cobular","email":"coverj715+npm@gmail.com"},"directories":{},"maintainers":[{"name":"cobular","email":"coverj715+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resist-o-calc_0.1.0_1688160802236_0.258661634542678"},"_hasShrinkwrap":false},"0.1.1":{"name":"@cobular/resist-o-calc","collaborators":["Your Name <you@example.com>"],"version":"0.1.1","module":"resist_o_calc.js","types":"resist_o_calc.d.ts","sideEffects":["./resist_o_calc.js","./snippets/*"],"gitHead":"5c5e3fc82b8edc2b06e889e33431b77367b3d6e9","description":"A simple, helpful WASM library to calculate one thing: what pair of normal e-series resistors gets you closest to the desired resistance you want for some resistor divider?","_id":"@cobular/resist-o-calc@0.1.1","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-p8WoIPrOxOjQjnOs8uRNc6pecePV/r0SH1vK2jb9+lBpBmkcXCBYdFxuv16TvUBbxJEOtjTtBrK+wW1upGRfPA==","shasum":"3832b38f082c9e3b779692f8736824004e83b782","tarball":"https://registry.npmjs.org/@cobular/resist-o-calc/-/resist-o-calc-0.1.1.tgz","fileCount":6,"unpackedSize":10896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRK2Sg9do/T13J58KP4LD/EuFCbbJGfA4qyMSmIffL/AiEAl6cEaOE41Xp41Fk+HwC6HMvVP5Zu2337GatJHrL41pg="}]},"_npmUser":{"name":"cobular","email":"coverj715+npm@gmail.com"},"directories":{},"maintainers":[{"name":"cobular","email":"coverj715+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resist-o-calc_0.1.1_1688617570054_0.9227459656626777"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-30T21:33:22.180Z","0.1.0":"2023-06-30T21:33:22.434Z","modified":"2023-07-06T04:26:10.426Z","0.1.1":"2023-07-06T04:26:10.320Z"},"maintainers":[{"name":"cobular","email":"coverj715+npm@gmail.com"}],"description":"A simple, helpful WASM library to calculate one thing: what pair of normal e-series resistors gets you closest to the desired resistance you want for some resistor divider?","readme":"# Resist-O-Matic\n\nA simple, helpful WASM library to calculate one thing: what pair of normal e-series resistors gets you closest to the desired resistance you want for some resistor divider?\n\nA component of https://resist.cobular.com, inspired by https://damien.douxchamps.net/elec/resdiv/, but re-implemented because who has time to hit a button and have a page load!? \n\n\n## Docs\n\n```typescript\ntype TsResistorSets = \"E3\" | \"E6\" | \"E12\" | \"E24\";\n\ninterface ResistorPair {\n  top_val: number,\n  bottom_val: number,\n}\ntype ResistorPairs = ResistorPair[];\n\nexport function find_by_voltage(v1: number, v2: number, resistor_set: TsResistorSets): ResistorPairs;\n```\n\n`find_by_voltage` returns the \n","readmeFilename":"README.md"}