{"_id":"@aficion360/decimal","_rev":"1-f46fff0a867b73a1f22d36d50e0a451e","name":"@aficion360/decimal","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aficion360/decimal","version":"1.0.0","description":"A simple arbitrary-precision Decimal class for TypeScript","keywords":["decimal","typescript","immutable","money","monetary"],"author":{"name":"aficion360"},"license":"MIT","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","test":"jest --config jestconfig.json","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^24.9.1","jest":"^25.1.0","prettier":"^1.19.1","ts-jest":"^25.0.0","tslint":"^6.0.0","tslint-config-prettier":"^1.18.0","typescript":"^3.7.5"},"repository":{"type":"git","url":"git+https://github.com/aficion360/decimal.git"},"bugs":{"url":"https://github.com/aficion360/decimal/issues"},"homepage":"https://github.com/aficion360/decimal","gitHead":"41ab49ace9f83dee0e8692312c50a34913d221f6","_id":"@aficion360/decimal@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-quCxAda/WbS0TcBc+qQ1jczw+s5MmuqUcQTFPe5CrlCbBc+loCZo7vmX0NMOcr8Y+ZYyZ5gx8bINjWYJYx5orA==","shasum":"4021bb122dc3d8a77781e29f6baa569eb244c9ae","tarball":"https://registry.npmjs.org/@aficion360/decimal/-/decimal-1.0.0.tgz","fileCount":8,"unpackedSize":21856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMw3ZCRA9TVsSAnZWagAAJ5sP/32Hteri+O1vfips3wxK\ne3aQtCx8/Gwx5wOb+JShLsrvmSd81WypG4C75hvtFYN0IgFQW73/cuKDBPJA\nZ0IVTQhhR/v5FtylB8e7GHI54zpsGK4ZDd/iCCPOuXHQecFegDWzeH1bb857\ntUkuL4Tirwm6+y7WztGcq6z071gIVeDf8abGfYqnKyyq8Z5Jj3re3NN7DSOQ\nS8MdbXWfePBsSK49xl4EHWBcg+R0GPq1HAiQj4dAit7TEsTIk9OmBELWemTp\n4bG3rOJld1sTeddXbA7nkmGiTzGQtfLLVxeUVtjez7wRAxJYJMP+AbOIJacq\nVnK/YeVeuSkB/DCTei+2rOeFQdHRObyoGAoZsr/u1xORCQ+AgfGZf5t7diql\nLyAi+SLeidES19HG72/zXGGtJz2ejtxjpOgTJsyayQZc85usVDJryS/1h9p1\nyMDWOhkQc1Q4dPeSs+wmNnwgw4IjiZaAeFKjANgBgb/wBuRvFFTMq05IrVZx\nZL7es7Zy/p4WImw0dRqhexWkZr/cLeS6nOv3Ng3gBmnqkvXOqCXDaL1rqUum\nzPVgnnOJ+1D8Ydjf93/s1YtDDhKOO5s2BduljEIF5xx7uDBcOAjCoUECMqiq\nJnsNs96Vfj7gM+TV6TgiofecZP0FnWEunGrxBTZtWF+92xF4w+cQ7piDQb9Q\nMQVN\r\n=2BaT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6bRC1Nzx4HqFWmebg7dNmJnWXqIxet7a47JHUhOUr6wIhAPD86QiMKGkA5rEh78K3HAMLYWfn0Zk8NDZGfQjoD6l9"}]},"maintainers":[{"name":"aficion360","email":"aficion360@hiberus.com"}],"_npmUser":{"name":"aficion360","email":"aficion360@hiberus.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/decimal_1.0.0_1580404184715_0.8984542431248272"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-30T17:09:44.686Z","1.0.0":"2020-01-30T17:09:44.836Z","modified":"2022-04-04T11:50:46.900Z"},"maintainers":[{"name":"aficion360","email":"aficion360@hiberus.com"}],"description":"A simple arbitrary-precision Decimal class for TypeScript","homepage":"https://github.com/aficion360/decimal","keywords":["decimal","typescript","immutable","money","monetary"],"repository":{"type":"git","url":"git+https://github.com/aficion360/decimal.git"},"author":{"name":"aficion360"},"bugs":{"url":"https://github.com/aficion360/decimal/issues"},"license":"MIT","readme":"# Decimal\n\nA simple arbitrary-precision Decimal type for TypeScript.\n\n- Accept `Number`, `String`, `Null` and `NaN` values.\n- No dependecies.\n- Immutable data structure.\n- Secure operations, like add, substract or multiply. Ex: `0.1 + 0.2 = 0.3`.\n- Tested classes.\n\n\n## Use\n\nCreate instances:\n```\nconst decNull = new Decimal(null);\nconst decNaN = new Decimal('euro');\nconst dec10 = new Decimal(10);\nconst dec30 = new Decimal('30 euros');\n```\n\nChain operations:\n```\n// Output: \"0.3\"\nnew Decimal(0.1).add(0.2).toString();\n```\n\n**Afición 360**\n\n_Enjoy it ;-)_\n","readmeFilename":"README.md"}