unformat-money-js
Version:
Zero dependency tiny JavaScript library (532 bytes) by CurrencyRate.today, providing simple way removes all formatting/cruft and returns the raw float value.
74 lines (73 loc) • 1.96 kB
JSON
{
"name": "unformat-money-js",
"description": "Zero dependency tiny JavaScript library (532 bytes) by CurrencyRate.today, providing simple way removes all formatting/cruft and returns the raw float value.",
"version": "1.0.7",
"license": "BSD-2-Clause",
"main": "dist/unformat-money-js.cjs.js",
"module": "dist/unformat-money-js.esm.js",
"browser": "dist/unformat-money-js.umd.min.js",
"types": "dist/unformat-money.d.ts",
"exports": {
".": {
"require": "./dist/unformat-money-js.cjs.js",
"import": "./dist/unformat-money-js.esm.js",
"browser": "./dist/unformat-money-js.umd.min.js",
"types": "./dist/unformat-money.d.ts"
}
},
"files": [
"dist"
],
"author": "@dejurin",
"bugs": {
"url": "https://github.com/dejurin/unformat-money-js/issues"
},
"scripts": {
"build": "bun run clean && bun test && tsc && bun lint && bun format && rollup -c",
"clean": "rimraf dist",
"test": "tape src/*.spec.ts",
"format": "prettier --write \"src/*.ts\"",
"lint": "eslint ./src/*.ts"
},
"keywords": [
"money",
"format",
"currency",
"format-currency",
"currency-formatter",
"utilities",
"accounting",
"number",
"parse",
"precision",
"decimal",
"finance",
"exchange",
"unformat",
"currencyrate.today",
"zero-dependency"
],
"repository": {
"type": "git",
"url": "git@github.com:dejurin/unformat-money-js.git"
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.1.2",
"@typescript-eslint/eslint-plugin": "^8.24.1",
"@typescript-eslint/parser": "^8.24.1",
"del": "^3.0.0",
"eslint": "^9.20.1",
"prettier": "^3.5.1",
"rimraf": "^6.0.1",
"rollup": "^4.34.8",
"rollup-plugin-terser": "^7.0.2",
"tape": "^5.9.0",
"typescript": "^5.7.3",
"uglify-es": "^3.3.9"
},
"dependencies": {
"@types/tape": "^5.8.1",
"tslib": "^2.8.1"
},
"type": "module"
}