1.0.1 • Published 8 years ago

url-template- v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

url-template-

url-template- is yet another Javascript library for expanding URI templates according to RFC-6570. Note it doesn't do everything specified in the RFC and deals with expansion only of URI templates.

Installation

npm install https://github.com/robhicks/url-template-.git

# or

yarn add https://github.com/robhicks/url-template-.git

Use

You can use the library in the browser or on NodeJs.

In the browser you can load dist/url-template-.iife.js in a script tag, or if you are using an es6 aware bundler like RollupJs, you can import it into your entry file using Node's resolution algorithm (rollup-plugin-node-resolve).

In NodeJs, require it as usual.

Examples