{"_id":"nepali-number","_rev":"3-74244e6ac5c3db274593e4682c44e646","name":"nepali-number","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"nepali-number","version":"1.0.1","description":"Nepali numbers","main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","types":"dist/index.d.ts","scripts":{"test":"NODE_ICU_DATA=node_modules/full-icu jest --config jestconfig.json","clean-modules":"rimraf node_modules","clean":"rimraf dist npm-debug.log* yarn-error.log*","build:example":"cd ./examples && yarn && yarn build","watch:example":"yarn --cwd ./examples start","build:plugin":"yarn clean && rollup -c","watch:plugin":"rollup -c --watch","build":"npm-run-all build:*","start":"npm-run-all -p watch:*","format":"prettier --write \"src/**/*.js\"","lint":"tslint -p tsconfig.json","prepare":"yarn build","prepublishOnly":"yarn test && yarn lint","preversion":"yarn lint","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+ssh://git@github.com/puncoz-official/nepali-number.git"},"keywords":["nepali","english","number","digit","conversion"],"author":{"name":"Puncoz Nepal","email":"info@puncoz.com"},"license":"MIT","bugs":{"url":"https://github.com/puncoz-official/nepali-number/issues"},"homepage":"https://puncoz-official.github.io/nepali-number","devDependencies":{"@types/jest":"^24.0.17","full-icu":"^1.3.0","jest":"^24.9.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","rimraf":"^3.0.0","rollup":"^1.19.4","rollup-plugin-commonjs":"^10.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-typescript2":"^0.22.1","ts-jest":"^24.0.2","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","typescript":"^3.5.3"},"dependencies":{},"gitHead":"a668f121dc628f6feeea36a405008daef8abc93f","_id":"nepali-number@1.0.1","_nodeVersion":"12.8.1","_npmVersion":"6.10.3","dist":{"integrity":"sha512-+T44Q1541DyXMyj8gAKFTyl4w7WMGHzkKkhrLt7sPVz5OqeGHldAIcEAyHJySgcRkVh9AwyNa4Nxvv7ApByT3A==","shasum":"8d5d09fc9bb57f11e1ab44efe4179b141b03a1cc","tarball":"https://registry.npmjs.org/nepali-number/-/nepali-number-1.0.1.tgz","fileCount":9,"unpackedSize":32945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYX9PCRA9TVsSAnZWagAA0EcP/i+btBy85227iO4jkSZr\n9iyzIoBlNG9pzRodx8NiIMRan/FqmgE5TWYCnjY3AvZDXVgvAEor0qh5oxAv\nd827h+430z9+DuTvEBkgMYHTiIIGE4vbwpEdkNxL+4kS0HYhzKlwIzoB9eys\n5t8YGeEuMKDRRTE1Ub+0BxbNPUYd7ShKnzW2+wuyCuA6+an+LHg9dRfj97EU\nlSQPFEFEnn90Bcu4sPrZ2TSN/NJVU3aptM3xnQVkaGJFXvm3g+O1LqlCZztM\nYwH/Grkt/EBw2VyHO9plNcXBwF1WldCsWhUIlsvsFJnR8zX4vH+iecN9nPnn\npfAWc8IOPp4ZsmnnSwSOtJtu94ivsh3e7Ku3Dg2BHWho4YaSbSrQ9KBCZW5W\nQgK1XrMnzKR3S0++1R5AJshZdJfM9M9rcDqrbVPzUM8Gm6dtDMPW1vxwR2fs\nChjTBgZ76OheReAr2EOEpygdkhEZDzr/u7H9n9FgZaWPdlLjFWgOPUMKjSxp\nA5eTFLRUyX/fMhedpI1hYdOG6g20JvCcFdFbtxylHZaklnmlE4ryfh4F++0g\n7z4lp4ioakbvcKHg00F34ykSXzPOJJRLlV0/eG0l9m00g3wN7tnlmjXloHxU\nF6iRxf7EXgzsbMls5rtMCjCaEzLIQMAlQ3IwRaesEaVJlpVSepVDFhm5WEHg\nCM5R\r\n=5z3/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwmjWrWQESey2jGNAFnctvVFv+S3fZmLlMlS2hIf5eDwIgEFRHNAN5GZIKure0Brq2o0vR1ow/lN5pG9jt/aqIcTY="}]},"maintainers":[{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"}],"_npmUser":{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nepali-number_1.0.1_1566670670704_0.6696122762301657"},"_hasShrinkwrap":false},"1.0.2":{"name":"nepali-number","version":"1.0.2","description":"Conversion and transliteration of English to Nepali numbers and vice versa","main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","types":"dist/index.d.ts","scripts":{"test":"NODE_ICU_DATA=node_modules/full-icu jest --config jestconfig.json","clean-modules":"rimraf node_modules","clean":"rimraf dist npm-debug.log* yarn-error.log*","build:example":"cd ./examples && yarn && yarn build","watch:example":"yarn --cwd ./examples start","build:plugin":"yarn clean && rollup -c","watch:plugin":"rollup -c --watch","build":"npm-run-all build:*","start":"npm-run-all -p watch:*","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"yarn build","prepublishOnly":"yarn test && yarn lint","preversion":"yarn lint","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+ssh://git@github.com/puncoz-official/nepali-number.git"},"keywords":["nepali","english","number","digit","conversion"],"author":{"name":"Puncoz Nepal","email":"info@puncoz.com"},"license":"MIT","bugs":{"url":"https://github.com/puncoz-official/nepali-number/issues"},"homepage":"https://github.com/puncoz-official/nepali-number","devDependencies":{"@types/jest":"^24.0.17","full-icu":"^1.3.0","jest":"^24.9.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","rimraf":"^3.0.0","rollup":"^1.19.4","rollup-plugin-commonjs":"^10.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-typescript2":"^0.22.1","ts-jest":"^24.0.2","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","typescript":"^3.5.3"},"dependencies":{},"gitHead":"7fab875cbbe1c9476ca8b60def8528f200a1bb3d","_id":"nepali-number@1.0.2","_nodeVersion":"12.8.1","_npmVersion":"6.10.3","dist":{"integrity":"sha512-gGda8qlHhrmlVevatwq/YgkeByj0rj9Frkn/rNt7pOE++E3P6A9DoTLSsozXoRMH9JKtOIUvGfDhxDB3/H6psA==","shasum":"d34f5e20ab7f194ec27515182560e731415350c2","tarball":"https://registry.npmjs.org/nepali-number/-/nepali-number-1.0.2.tgz","fileCount":9,"unpackedSize":33987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYYEnCRA9TVsSAnZWagAALfYP+wZe4Ch3gIVSU9esZnoE\noLkTarPhcpj3vQMxmHv85GvFhKOYUwi6/INM1GDrBMAA6nCcyruvThTijxCo\ngziDN/GPVtwVdSjj9hKqFPiIOo08OUsCYoLndv+mKpC8qH/xLEPSejReUpw5\nqzE6uYs5ezCvfc6ivUGkbAJNXuyNCMJkqLJM8J0FmcU/GU470QT5wmw5OsQg\nL4mG6Q8JyyCuWzp2TP8xWXzSGXI906cjgl1r07akjTSBA+jSjK8sN6zTKeLg\ntR9l0/iLn+4BtKSzs1PEwjON18izt0U2bYT0dX8YxWDT12NxjYr/f92Pln7V\nnI64ymZTraDQyRyS4QSZJ1OY0BX0IF4RV5Wbdb4OYXrTCzNvuofGP2lmpoR3\nz11V1j/kkS/kmwWRoPGRRj+wcTO8uCssnktzm2C+oeIRz6965X/8PK8BiI7O\nQsgJUf7mwdR+cYLtH012YMIvBWhf724Ih+IrEAN9UK2VXdy+XXATaSBdYbvw\nDCxp3dUDWO2nj6/S/5hSaE8d3AGg3zzJOWqPBYbQFU/0w0+NpG8GN0KtfbCt\nvBbJInq+Xa/wtW2iHn6AFlKNZgif36sHXKnS0meZmUuCgRKNFMgxrU/Fbk5y\nwvv5v4CII/NNKm8R75qk8MGUFTvOs9o0jix0cnXPNqMlr/mKHlny4bA6eptM\niEHT\r\n=ZmeZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS7Qezdl31oZxnNAI/ipsKXu6VSRq1sMa/xfVVljYJ9gIgCV0nIZqqPGj30lvXsI1qTn7IuMb+smsqeSmNRa0kwk4="}]},"maintainers":[{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"}],"_npmUser":{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nepali-number_1.0.2_1566671143070_0.8005101631940115"},"_hasShrinkwrap":false},"1.0.3":{"name":"nepali-number","version":"1.0.3","description":"Conversion and transliteration of English to Nepali numbers and vice versa","main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","types":"dist/index.d.ts","scripts":{"test":"NODE_ICU_DATA=node_modules/full-icu jest --config jestconfig.json","clean-modules":"rimraf node_modules","clean":"rimraf dist npm-debug.log* yarn-error.log*","build:example":"cd ./examples && yarn && yarn build","watch:example":"yarn --cwd ./examples start","build:plugin":"yarn clean && rollup -c","watch:plugin":"rollup -c --watch","build":"npm-run-all build:*","start":"npm-run-all -p watch:*","format":"prettier --write \"src/**/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"yarn build","prepublishOnly":"yarn test && yarn lint","preversion":"yarn lint","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+ssh://git@github.com/puncoz-official/nepali-number-js.git"},"keywords":["nepali","english","number","digit","conversion"],"author":{"name":"Puncoz Nepal","email":"info@puncoz.com"},"license":"MIT","bugs":{"url":"https://github.com/puncoz-official/nepali-number-js/issues"},"homepage":"https://github.com/puncoz-official/nepali-number-js","devDependencies":{"@types/jest":"^24.0.17","full-icu":"^1.3.0","jest":"^24.9.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","rimraf":"^3.0.0","rollup":"^1.19.4","rollup-plugin-commonjs":"^10.0.2","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-typescript2":"^0.22.1","ts-jest":"^24.0.2","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","typescript":"^3.5.3"},"dependencies":{},"gitHead":"4ca145ee8b459aabd64052813fd9ecde7d768115","_id":"nepali-number@1.0.3","_nodeVersion":"12.8.1","_npmVersion":"6.10.3","dist":{"integrity":"sha512-Vb6aMQM/xtE7KiiEhemgDcACxIMaDn18Ub/imWXB6JlhDwc2qVDnGW+sR0gDLPQmyiyk06bkKze1oK88FxWIjw==","shasum":"3d0079f77f0a85dfb86f54a0a716fd346a276ff3","tarball":"https://registry.npmjs.org/nepali-number/-/nepali-number-1.0.3.tgz","fileCount":9,"unpackedSize":33996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYoyUCRA9TVsSAnZWagAAff4P/j0RDQvQj64mu5PGNrjU\nqO0SaRDSMpsbHhn/wYWE7TdmH4T3jXIGyN+/LtEF6Nzp5YQbO83ae4xHng0F\n6hrV0dgOaFGFIdKrmqTcG8LLLZpk0iI5vaLd31lCdHZRcq0I4YyOg0AGXHNc\nx1T/p26+wJOIhAcAQcL100E8oa/eEq1417QzcLXn0VfeZX5Hoj+WwTeLsMsg\nGrkW9Oqal3MjOzLnznHFMg3voM+eRpE7geNr6QiJDumkfPkEhsIiYkyQftm3\n8XTXcDzPuYxSDmYrnsJ0T6rDSHM2quC0OAi0k00ViYCR97ZwBuAZNUKPCA6k\netYgNUChcUXD7fivX3fzdpBeSKk4zKO63HAdfdlt/ZaoXc8pDrTfpMhY5+O2\ni3h4Ewn9NMk4FQEG161H4dwFH5u7LbIoucwSOipsIsxD9ESD9ikJlHOz055Y\nERyC5JLrctbBRP4yFFrwYxtsxH1NkzdjBiXNDB/28TNzWwYqkDiUo8qxXbHM\nNyRSCBMbEkiGhT1R1F3UK3NjKeyB5PhF5UN6dy24h3ETEeOzmaiPp4FkqRpP\njCIy32ZEWI/XjPl2Nvo2q7OF5Us4fT+OU0DiNTolE0Tdxx35Bt3YEd9gkw1e\noVpVpTxugSed/vZOX8hZQfscRivWa7e8jJkFuQP/46sxh6wV2GqLkO4PD0+y\nfIel\r\n=/HnI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWv0SjWphWNLEc8AAktDYhR1SE7cb4cPnAcaZFmFA+mgIgcgMNbOicd4gbxjop4Qc8fGBXHjCkLG36JZHSctnoXSM="}]},"maintainers":[{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"}],"_npmUser":{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nepali-number_1.0.3_1566739603901_0.7183285192330113"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-24T18:17:50.703Z","1.0.1":"2019-08-24T18:17:50.953Z","modified":"2022-05-10T12:18:32.091Z","1.0.2":"2019-08-24T18:25:43.179Z","1.0.3":"2019-08-25T13:26:44.006Z"},"maintainers":[{"name":"puncoz","email":"puncoz138+npmjs@gmail.com"}],"description":"Conversion and transliteration of English to Nepali numbers and vice versa","homepage":"https://github.com/puncoz-official/nepali-number-js","keywords":["nepali","english","number","digit","conversion"],"repository":{"type":"git","url":"git+ssh://git@github.com/puncoz-official/nepali-number-js.git"},"author":{"name":"Puncoz Nepal","email":"info@puncoz.com"},"bugs":{"url":"https://github.com/puncoz-official/nepali-number-js/issues"},"license":"MIT","readme":"# Nepali Number\n\nTranslations and formatting numbers in nepali (Devnagari) and english with unicode supports.\n\n[![Version](https://img.shields.io/npm/v/nepali-number?logo=npm)](https://www.npmjs.com/package/nepali-number)\n[![Twitter Follow](https://img.shields.io/twitter/follow/PuncozNepal?label=Follow&style=social)](https://twitter.com/PuncozNepal)\n\n## Installation\n\nUsing NPM:\n```\nnpm i nepali-number\n```\n\nor, using Yarn:\n\n```\nyarn add nepali-number\n```\n\n## Usage\n\n### Import package\nUsing ES6 `import`:\n```\nimport {\n    englishToNepaliNumber,\n    nepaliToEnglishNumber,\n    \n    nepaliNumberFormat,\n    englishNumberFormat,\n    \n    nepaliAmountFormat,\n    englishAmountFormat,\n} from \"nepali-number\"\n```\n\nor, using commonJS `require`\n\n```\nconst nepaliNumber = require('nepali-number')\n\nnepaliNumber.englishToNepaliNumber(\"8848m\")\n```\n\n#### 1. English number to nepali (Devnagari) unicode\nSyntax: `englishToNepaliNumber(numberString: string | number)`\n\n```\nenglishToNepaliNumber(\"12,34,56,789.01\") // \"१२,३४,५६,७८९.०१\"\n```\n\n#### 2. Nepali (Devnagari) unicode to english\nSyntax: `nepaliToEnglishNumber(numberString: string | number)`\n\n```\nnepaliToEnglishNumber(\"१२,३४,५६,७८९.०१\") // \"12,34,56,789.01\"\n```\n\n\n#### 3. Formatting number to Nepali number system\n\nSyntax: `nepaliNumberFormat(numberString: string | number, [locale: string])`\n- locale: `en` for English and `ne` and Nepali (Devnagari). Default to `en`\n\n```\nnepaliNumberFormat(\"१२३४५६७८९\") // \"12,34,56,789\"\nnepaliNumberFormat(\"१२३४५६७८९\", \"ne\") // \"१२,३४,५६,७८९\"\n\nnepaliNumberFormat(\"123456789\") // \"12,34,56,789\"\nnepaliNumberFormat(\"123456789\", \"ne\") // \"१२,३४,५६,७८९\"\n```\n\n\n#### 4. Formatting number to English number system\n\nSyntax: `englishNumberFormat(numberString: string | number, [locale: string])`\n- locale: `en` for English and `ne` and Nepali (Devnagari). Default to `en`\n\n```\nenglishNumberFormat(\"१२३४५६७८९\") // \"123,456,789\"\nenglishNumberFormat(\"१२३४५६७८९\", \"ne\") // \"१२३,४५६,७८९\"\n\nenglishNumberFormat(\"123456789\") // \"123,456,789\"\nenglishNumberFormat(\"123456789\", \"ne\") // \"१२३,४५६,७८९\"\n```\n\n\n#### 5. Formatting amount (number with precision) to Nepali number system\n\nSyntax: `nepaliAmountFormat(numberString: string | number, [precision: number], [locale: string])`\n- precision: Default to `2`\n- locale: `en` for English and `ne` and Nepali (Devnagari). Default to `en`\n\n```\nnepaliAmountFormat(\"१२३४५६७८९.०१५४\") // \"12,34,56,789.02\"\nnepaliAmountFormat(\"१२३४५६७८९.०१५४\", 3, \"ne\") // \"१२,३४,५६,७८९.०१५\"\n\nnepaliAmountFormat(\"123456789.0154\") // \"12,34,56,789.02\"\nnepaliAmountFormat(\"123456789.0154\", 3, \"ne\") // \"१२,३४,५६,७८९.०१५\"\n```\n\n\n#### 6. Formatting amount (number with precision) to English number system\n\nSyntax: `englishAmountFormat(numberString: string | number, [precision: number], [locale: string])`\n- precision: Default to `2`\n- locale: `en` for English and `ne` and Nepali (Devnagari). Default to `en`\n\n```\nenglishAmountFormat(\"१२३४५६७८९.०१५४\") // \"123,456,789.02\"\nenglishAmountFormat(\"१२३४५६७८९.०१५४\", 3, \"ne\") // \"१२३,४५६,७८९.०१५\"\n\nenglishAmountFormat(\"123456789.0154\") // \"123,456,789.02\"\nenglishAmountFormat(\"123456789.0154\", 3, \"ne\") // \"१२३,४५६,७८९.०१५\"\n```\n\n","readmeFilename":"README.md"}