
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
url-relative
Advanced tools
calculate RFC 1808 relative URLs (inverse of url.resolve)
var urlRelative = require('url-relative')
urlRelative('http://foo.com/a/b','http://foo.com/c/d')
// => '../c/d'
urlRelative('/a/b', '/a/b/c')
// => 'b/c'
urlRelative : (from : String, to : String) => String
Returns the shortest relative URL difference between a from
and a to
URL. Relative URLs are described in RFC 1808.
from
and two
can be full URLs (e.g. http://foo.com/bar
), network location URLs (protocol-relative, e.g. //foo.com/bar
), or absolute path URLs (e.g. /bar
).
$ npm install url-relative
From package root:
$ npm install
$ npm test
ISC. (c) MMXV jden jason@denizac.org. See LICENSE.md
FAQs
calculate RFC 1808 relative URLs (inverse of url.resolve)
The npm package url-relative receives a total of 19 weekly downloads. As such, url-relative popularity was classified as not popular.
We found that url-relative demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.