{"_id":"same-origin","_rev":"6-2d1409f5cd018eb70a3bf9a077646b73","name":"same-origin","description":"Checks if two URLs pass the \"same origin\"-policy (RFC 6454)","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"same-origin","version":"0.1.0","description":"Checks if two URLs pass the \"same origin\"-policy (RFC 6454)","main":"index.js","scripts":{"test":"node test/tests.js|faucet","build":"browserify -g [uglifyify] -s same-origin index.js > dist/same-origin.min.js"},"repository":{"type":"git","url":"git://github.com/rexxars/same-origin.git"},"keywords":["same-origin","origin","sop","rfc6454","url"],"browser":{"url":"./url-parser.js"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","bugs":{"url":"https://github.com/rexxars/same-origin/issues"},"homepage":"https://github.com/rexxars/same-origin","devDependencies":{"browserify":"^4.2.3","faucet":"^0.0.1","tape":"^2.13.4","uglifyify":"^2.5.0"},"testling":{"files":"test/*.test.js","browsers":["ie/8..latest","firefox/22..latest","firefox/nightly","chrome/26..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"a6a0b9e364d26a373409b3986ea84e848ea8247b","_id":"same-origin@0.1.0","_shasum":"90d1f0806d59cd8cf1c9426b0860ea8337f911dc","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"maintainers":[{"name":"rexxars","email":"rexxars@gmail.com"}],"dist":{"shasum":"90d1f0806d59cd8cf1c9426b0860ea8337f911dc","tarball":"https://registry.npmjs.org/same-origin/-/same-origin-0.1.0.tgz","integrity":"sha512-cgnRBAA2O6Il+Hx2o5ti72q1LS+SmTk5ANeSViKye9IOuMG0UEz5sYiM0yOVugTUdN0iRGKVuSmT5MC+GgxWpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp+Yv0ZjdvbLN5kTZx2+od/jTpd/mmUU+wZjSXrDV+yAiAOvgvJs9yYlTmzbbEdHRkCWCDNDbWIjeP9R2MRlIFlgg=="}]}},"0.1.1":{"name":"same-origin","version":"0.1.1","description":"Checks if two URLs pass the \"same origin\"-policy (RFC 6454)","main":"index.js","scripts":{"test":"node test/tests.js|faucet","build":"browserify -g [uglifyify] -s same-origin index.js > dist/same-origin.min.js"},"repository":{"type":"git","url":"git://github.com/rexxars/same-origin.git"},"keywords":["same-origin","origin","sop","rfc6454","url"],"browser":{"url":"./url-parser.js"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","bugs":{"url":"https://github.com/rexxars/same-origin/issues"},"homepage":"https://github.com/rexxars/same-origin","devDependencies":{"browserify":"^4.2.3","faucet":"^0.0.1","tape":"^2.13.4","uglifyify":"^2.5.0"},"testling":{"files":"test/*.test.js","browsers":["ie/8..latest","firefox/22..latest","firefox/nightly","chrome/26..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"a3732a009e07aa3ede6803888631c711f5d68b90","_id":"same-origin@0.1.1","_shasum":"c2287d3192577df517acbbd6d1451a9c3c3914f5","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"maintainers":[{"name":"rexxars","email":"rexxars@gmail.com"}],"dist":{"shasum":"c2287d3192577df517acbbd6d1451a9c3c3914f5","tarball":"https://registry.npmjs.org/same-origin/-/same-origin-0.1.1.tgz","integrity":"sha512-effkSW9cap879l6CVNdwL5iubVz8tkspqgfiqwgBgFQspV7152WHaLzr5590yR8oFgt7E1d4lO09uUhtAgUPoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCe33wtJDdLJ46DxmUL0lyGJc/UPZyaDj3o2m6xCqM8gIhAKTQXAtmZCXf+jgKCC5tHo9OYc5UrCkm3ErkeFp6CUb0"}]}}},"readme":"same-origin\n===========\n\nChecks if two URLs pass the \"same origin\"-policy (RFC 6454)\n\n[![Build Status](https://travis-ci.org/rexxars/same-origin.svg?branch=master)](https://travis-ci.org/rexxars/same-origin)\n\n[![browser support](https://ci.testling.com/rexxars/same-origin.png)\n](https://ci.testling.com/rexxars/same-origin)\n\nInstallation\n============\n\nRun `npm install --save same-origin` to include it in your project.\n\nWorks well with browserify.\n\nUsage\n=====\n\n```js\nvar sameOrigin = require('same-origin');\nvar url1 = 'http://example.com/some/page.html';\nvar url2 = 'http://example.com/some/other/page.html';\nvar url3 = 'http://espen.codes/nodejs';\nsameOrigin(url1, url2); // true\nsameOrigin(url1, url3); // false\n```\n\n`same-origin` works in most environments:\n\n```js\n// CommonJS\nvar sameOrigin = require('same-origin');\n\n// AMD (Require.JS, yepnope, dojo...)\ndefine(['same-origin'], function(sameOrigin) {\n    // ...\n});\n\n// Browser global (if CommonJS/AMD environment not found)\nwindow.sameOrigin(url1, url2);\n```\n\nLicense\n=======\n\nMIT-licensed. See LICENSE.","maintainers":[{"name":"rexxars","email":"rexxars@gmail.com"}],"time":{"modified":"2022-06-26T15:44:24.133Z","created":"2014-07-22T09:03:19.899Z","0.1.0":"2014-07-22T09:03:19.899Z","0.1.1":"2014-07-23T11:23:06.453Z"},"homepage":"https://github.com/rexxars/same-origin","keywords":["same-origin","origin","sop","rfc6454","url"],"repository":{"type":"git","url":"git://github.com/rexxars/same-origin.git"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"bugs":{"url":"https://github.com/rexxars/same-origin/issues"},"license":"MIT","readmeFilename":"README.md"}