UNPKG

parse-price

Version:

returns a Number from a localized price string

50 lines (49 loc) 1.45 kB
{ "name": "parse-price", "version": "1.1.8", "description": "returns a Number from a localized price string", "main": "src/index.js", "directories": { "test": "test" }, "scripts": { "test:types": "tsc --allowJs --checkJs --noEmit src/*.js", "test:lint": "standard 'src/**/*.js' 'test/**/*.js'", "test:lint:fix": "standard --fix 'src/**/*.js' 'test/**/*.js'", "test": "tap test/index.js --cov && npm run test:lint && npm run test:types", "build": "webpack && ./tasks/write-banner", "build:min": "webpack && uglifyjs dist/parse-price.js -c -m -o dist/parse-price.min.js && ./tasks/write-banner", "build:all": "npm run build && npm run build:min", "preversion": "npm run test", "version": "npm run build:all && git add dist/" }, "repository": { "type": "git", "url": "git+https://github.com/caiogondim/parse-price.js.git" }, "keywords": [ "parse", "number", "localization", "price", "i10n", "i18n", "internationalization" ], "author": "Caio Gondim", "license": "MIT", "bugs": { "url": "https://github.com/caiogondim/parse-price.js/issues" }, "homepage": "https://github.com/caiogondim/parse-price.js#readme", "devDependencies": { "@types/node": "8.0.34", "codecov": "^1.0.1", "covert": "^1.1.0", "standard": "^7.1.2", "tap": "^6.3.0", "typescript": "2.5.3", "uglify-js": "^2.7.0", "webpack": "^1.13.1" } }