UNPKG

libphonenumber-js

Version:

A simpler (and smaller) rewrite of Google Android's popular libphonenumber library

95 lines (94 loc) 3.67 kB
{ "name": "libphonenumber-js", "version": "0.4.10", "description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library", "main": "index.common.js", "module": "index.es6.js", "dependencies": { "babel-runtime": "^6.6.1", "bluebird": "^3.4.6", "minimist": "^1.2.0", "xml2js": "^0.4.17" }, "devDependencies": { "babel-cli": "^6.18.0", "babel-core": "^6.21.0", "babel-loader": "^6.2.10", "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-plugin-transform-runtime": "^6.6.0", "babel-preset-es2015": "^6.18.0", "babel-preset-stage-2": "^6.18.0", "better-npm-run": "0.0.14", "chai": "^3.5.0", "istanbul": "^1.1.0-alpha.1", "json-loader": "^0.5.4", "mocha": "^2.4.5", "npm-run-all": "^1.4.0", "rimraf": "^2.5.0", "webpack": "^2.2.0-rc.3" }, "scripts": { "metadata:pull-request": "babel-node runnable/metadata-pull-request", "metadata:branch": "babel-node runnable/metadata-branch", "metadata:unbranch": "babel-node runnable/metadata-unbranch", "metadata:publish": "npm version patch && npm publish && git push", "metadata:update": "npm run metadata:branch && npm run metadata:download && babel-node runnable/update && npm run metadata:unbranch", "metadata:generate": "babel-node runnable/generate ../PhoneNumberMetadata.xml", "metadata:download": "babel-node runnable/download https://raw.githubusercontent.com/googlei18n/libphonenumber/master/resources/PhoneNumberMetadata.xml PhoneNumberMetadata.xml", "test": "mocha --compilers js:babel-core/register --colors --bail --reporter spec test/ --recursive", "test-coverage": "istanbul cover -x \"build/**\" -x \"es6/**\" node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register --colors --reporter dot test/ --recursive", "test-travis": "istanbul cover -x \"build/**\" -x \"es6/**\" node_modules/mocha/bin/_mocha --report lcovonly -- --compilers js:babel-core/register --colors --reporter spec test/ --recursive", "browser-build": "better-npm-run browser-build", "browser-build-dev": "npm run build-es6-modules && WEBPACK_ENV=dev webpack --progress --colors --watch", "clean-for-build": "rimraf ./build/**/* ./es6/**/*", "build-commonjs-modules": "better-npm-run build-commonjs-modules", "build-es6-modules": "better-npm-run build-es6-modules", "build": "npm-run-all clean-for-build build-commonjs-modules build-es6-modules", "prepublish": "npm-run-all build test browser-build" }, "betterScripts": { "browser-build": { "command": "npm run build-es6-modules && webpack --progress --colors", "env": { "WEBPACK_ENV": "build" } }, "build-commonjs-modules": { "command": "babel ./source --out-dir ./build --source-maps", "env": { "BABEL_ENV": "commonjs" } }, "build-es6-modules": { "command": "babel ./source --out-dir ./es6 --source-maps", "env": { "BABEL_ENV": "es6" } } }, "repository": { "type": "git", "url": "git+https://github.com/halt-hammerzeit/libphonenumber-js.git" }, "keywords": [ "javascript", "telephone", "phone", "number", "input", "mobile", "android", "iphone", "international", "libphonenumber" ], "author": "Halt Hammerzeit <halt.hammerzeit.at@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/halt-hammerzeit/libphonenumber-js/issues" }, "homepage": "https://github.com/halt-hammerzeit/libphonenumber-js#readme", "bin": { "libphonenumber-generate-metadata": "./bin/update-metadata.js" } }