2.0.0 • Published 10 years ago

normalize-shorthands v2.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

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.

2.0.0

10 years ago

1.0.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago