UNPKG

filter-validate-email

Version:

Email validation compatible with PHP's filter_var($v, FILTER_VALIDATE_EMAIL)

72 lines (71 loc) 2.63 kB
{ "name": "filter-validate-email", "version": "1.1.3", "main": "lib/index.js", "module": "es/index.js", "types": "typings/index.d.ts", "sideEffects": false, "scripts": { "check": "tsc --noEmit", "lint:eslint": "eslint {src,test}/**/*.ts *.config.js", "lint:prettier": "prettier ./src ./test *.config.js --list-different", "lint": "npm run lint:eslint && npm run lint:prettier", "fix:eslint": "eslint {src,test}/**/*.ts *.config.js", "fix:prettier": "prettier ./src ./test *.config.js --write", "fix": "npm run fix:eslint && npm run fix:prettier", "build:cjs": "BABEL_ENV=cjs babel src --out-dir lib --extensions .ts", "build:es": "BABEL_ENV=es babel src --out-dir es --extensions .ts", "build:umd": "BABEL_ENV=es NODE_ENV=development rollup -c", "build:umd:min": "BABEL_ENV=es NODE_ENV=production rollup -c", "build:typings": "tsc --outDir typings/ --emitDeclarationOnly", "build": "run-p build:**", "test": "npm run test:php && npm run test:ts", "test:coverage": "npm run test:php && npm run test:ts:coverage", "test:ts": "jest", "test:ts:coverage": "jest --coverage", "test:php": "php test/index.php", "prepublishOnly": "git diff --no-ext-diff --quiet --exit-code src .gitignore package.json README.md LICENSE || (echo \"Please commit changes!\" && false) && npm test && rm -rf lib es dist typings && npm run build" }, "author": "mpyw", "contributors": [ "mpyw <ryosuke_i_628@yahoo.co.jp>" ], "license": "MIT", "description": "Email validation compatible with PHP's filter_var($v, FILTER_VALIDATE_EMAIL)", "keywords": [ "email", "mail", "regex", "regular expression", "filter_var", "php" ], "repository": { "type": "git", "url": "git+https://github.com/mpyw/FILTER_VALIDATE_EMAIL.js.git" }, "bugs": { "url": "https://github.com/mpyw/FILTER_VALIDATE_EMAIL.js/issues" }, "homepage": "https://github.com/mpyw/FILTER_VALIDATE_EMAIL.js#readme", "devDependencies": { "@babel/cli": "^7.14.5", "@babel/core": "^7.14.6", "@babel/preset-env": "^7.14.7", "@babel/preset-typescript": "^7.14.5", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.0.0", "@types/jest": "^26.0.23", "@typescript-eslint/eslint-plugin": "^4.28.1", "@typescript-eslint/parser": "^4.28.1", "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0", "jest": "^27.0.6", "npm-run-all": "^4.1.5", "prettier": "^2.3.2", "rollup": "^2.52.6", "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.0.3", "typescript": "^4.3.5" } }