rfc6570-expand
v0.2.0
Published
A template processor for RFC 6570 URI Template
Downloads
1,175
Readme
rfc6570-expand
A template processor for RFC 6570 URI Template.
Installation
$ npm install rfc6570-expand
Usage
import { init } from 'rfc6570-expand';
const template = '{foo}';
const variables = { foo: 'bar' };
const { expand } = init(template);
const uri = expand(variables);
console.log(uri); // 'bar'
Alternatives
- LuvDaSun/rfc6570 (npm:rfc6570)
- bramstein/url-template (npm:url-template)
- brettstimmerman/temple (npm:temple)
- fxa/uritemplate-js (npm:uritemplate)
- geraintluff/uri-templates (npm:uri-templates)
- grncdr/uri-template (npm:uri-template)
- litejs/uri-template-lite (npm:uri-template-lite)
- medialize/URI.js (npm:urijs)
- rezigned/uri-template.js (npm:uri-template.js)