UNPKG

is-same-origin

Version:

Check if two URLs are same origin, for Node and the browser

38 lines (37 loc) 1.07 kB
{ "name": "is-same-origin", "version": "0.0.7", "description": "Check if two URLs are same origin, for Node and the browser", "main": "lib/index.js", "jsnext:main": "src/index.js", "unpkg": "dist/index.min.js", "files": [ "dist", "lib", "src" ], "scripts": { "clean": "rimraf dist lib", "build": "rollup -c", "test": "ava", "uglify": "uglifyjs dist/index.js --comments -c -m -o dist/index.min.js", "uglify-polyfill": "uglifyjs dist/index-with-polyfill.js --comments -c -m -o dist/index-with-polyfill.min.js", "prepublish": "npm-run-all clean build uglify uglify-polyfill" }, "keywords": [ "same-origin", "whatwg-url" ], "author": "Qingrong Ke <keqingrong1992@gmail.com> (https://keqingrong.github.io/)", "repository": "keqingrong/is-same-origin", "license": "MIT", "devDependencies": { "ava": "^0.25.0", "js-polyfills": "^0.1.42", "npm-run-all": "^4.1.3", "rimraf": "^2.6.2", "rollup": "^0.57.1", "rollup-plugin-node-resolve": "^3.3.0", "uglify-es": "^3.3.9" } }