Socket
Socket
Sign inDemoInstall

normalize-shorthands

Package Overview
Dependencies
2
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-shorthands


Version published
Maintainers
2
Created

Readme

Source

Shorthands

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Shorthands for Normalize URLs. Instead of writing insanely long URLs everywhere, write shorthands and add some logic to resolve the URLs.

For more information, see http://normalize.github.io/docs.html#shorthands

API

var shorthand = require('normalize-shorthands')(remotes)

remotes is either require('normalize-proxy/lib/remotes') or GET https://nlz.io/proxy.json.

var URL = shorthand(string)

Pass a string to shorthand and it will return an absolute URL against the remotes if it could resolve the shorthand or null otherwise.

FAQs

Last updated on 24 Sep 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc