{"_id":"@caldwell619/durable-parse-float","name":"@caldwell619/durable-parse-float","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@caldwell619/durable-parse-float","version":"0.0.1","description":"Utility to parse number from flexible input sources","main":"dist/index.js","module":"dist/index.module.js","source":"src/index.ts","scripts":{"format":"prettier --write .","lint":"eslint ./ --ext .ts","test":"jest","type-check":"tsc --noEmit","build":"microbundle --compress --target node --tsconfig tsconfig.build.json","bump:version":"standard-version","publish:release":"git push --follow-tags origin master && yarn publish","publish:version":"sh scripts/publish.sh","predeploy":"cd demo && yarn install && yarn run build","deploy":"gh-pages -d demo/build"},"repository":{"type":"git","url":"git@github.com:christopher-caldwell/durable-parse-float.git"},"bugs":{"url":"https://github.com/christopher-caldwell/durable-parse-float/issues"},"keywords":[],"author":{"name":"u/christopher-caldwell"},"license":"MIT","devDependencies":{"@types/is-number":"^7.0.3","@types/jest":"^28.1.7","@typescript-eslint/eslint-plugin":"^4.31.0","@typescript-eslint/parser":"^4.31.0","eslint":"^7.32.0","eslint-plugin-prettier":"^3.3.1","gh-pages":"^4.0.0","jest":"^29.0.3","microbundle":"^0.13.3","prettier":"^2.0.5","rc":"^1.2.8","standard-version":"^9.1.1","ts-jest":"^29.0.2","ts-node":"9.1.1","typescript":"^4.1.5"},"dependencies":{"is-number":"^7.0.0"},"_id":"@caldwell619/durable-parse-float@0.0.1","dist":{"shasum":"aa27ce4f6b620c0d82a6aad51e44787dd555d81b","integrity":"sha512-/PddJZQ96UlHQK8EONGgqHeX6qqhN+FgXU0uINu6ICKqohuERnofeXf5wUERMljU3hwPU6/KLB1I+2ZBrSmleg==","tarball":"https://registry.npmjs.org/@caldwell619/durable-parse-float/-/durable-parse-float-0.0.1.tgz","fileCount":13,"unpackedSize":9244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcas8iw/Xam5GINDZZ1OLwoBfrqF9DIUsU1geWGxFonQIgNjgrsQPHsoIrnaC9ockY+cHWDLh+ShReBxq+rfJCGF0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMJf7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRzg//UEfcN97AUAxGYtDCgslMY6FsAV5oiw8LJy98QLJ7MMEjw7Nd\r\n5F1dlffXOP0EAJPqxRqZLrCIRSqHRBhiGsp+Uc7/DKLh8RxUX4yoeYpt501Z\r\n9hOZATS0DCvK6MclXjEUwA2qY7j4KEymkNyTgc0mnhUDkMjD4LViREnVOWJz\r\nEnQKjA2Qnva1jz2I+ggRYcp9UROJT12iU/wYKQNCWB497KCalgz9JiZMTtcZ\r\npOAeM7SwO/Kr8OoRhNzodH1ZvIaG4UwFl7gt6cnWb/sNIrQCqwk0lFJhuTiQ\r\nwt90oz9dVUSBClD4bCoZFZLaNEaoF0u9RZsa1HcrZPw+BoTDwCfiuVn60N9f\r\nRBIoqyKlIcDRp/gYoOFP3Sq1g679lnOaJidcd80YaYuPmaF2heSsw3jcJhY3\r\njiSBM5fqKq8+l3HZxlXGVECQ0iAc21tbtlc105EXLxxf24BTmcnHTEt4GFC6\r\n8f/eSF6k94QGguYQBHMigxD6/lu7FtVfy7o8XUWyCGW2YsHWVDloejqUqUrc\r\nUiOA5COPxfZ+L0+X9KntmpcnBBbAnezDiqnQGOofTmLf7nyhX3us9SjWRuNW\r\nvJFGxgUhpPQTXoqyOTHvsVoP1qEXyenZx/2bCxe3IWb19CzU+wbhqCijDqD2\r\nZq9SXH6Jd6m75aUR04mmUdEI9VgKeFJLhdk=\r\n=LAaK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"caldwell619","email":"caldwell8814@gmail.com"},"directories":{},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/durable-parse-float_0.0.1_1664129019150_0.2647751585633895"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-25T18:03:39.084Z","0.0.1":"2022-09-25T18:03:39.390Z","modified":"2022-09-25T18:03:39.528Z"},"maintainers":[{"name":"caldwell619","email":"caldwell8814@gmail.com"}],"description":"Utility to parse number from flexible input sources","keywords":[],"repository":{"type":"git","url":"git@github.com:christopher-caldwell/durable-parse-float.git"},"author":{"name":"u/christopher-caldwell"},"bugs":{"url":"https://github.com/christopher-caldwell/durable-parse-float/issues"},"license":"MIT","readme":"# GitHub Slugger\n\nFork of durable-parse-float written in TS\n\n[![NPM](https://img.shields.io/npm/v/@caldwell619/durable-parse-float.svg)](https://www.npmjs.com/package/@caldwell619/durable-parse-float) [![NPM](https://img.shields.io/bundlephobia/min/@caldwell619/durable-parse-float)](https://www.npmjs.com/package/@caldwell619/durable-parse-float) [![](https://img.shields.io/github/last-commit/christopher-caldwell/durable-parse-float)]() [![](https://img.shields.io/npm/types/typescript)]()\n\n## Getting Started\n\n```shell\nyarn add @caldwell619/durable-parse-float\n```\n\n## Quick Example\n\n```ts\nimport { durableParseFloat, parseFloatStrict } from '@caldwell619/durable-parse-float'\n\ndurableParseFloat('1.34') // 1.34\ndurableParseFloat('#REF!') // null\nparseFloatStrict('1') // 1\nparseFloatStrict('1.34') // 1.34\nparseFloatStrict('') // error thrown\nparseFloatStrict(undefined) // error thrown\n```\n\n## Differences\n\n`durableParseFloat` is a flexible function that will return `null` or a number or float.\n\n`parseFloatStrict` is a light wrapper around `durableParseFloat` that will throw if the input is invalid.\n\nThere are 2 separate functions, mainly to ensure that data stays consistent. If you cannot have a number be `null`, whether that's from TypeScript types, or some schema, etc, you have a way to ensure that your input will be a number, or die trying.\n","readmeFilename":"README.md"}