rfc6570-expand
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Badges

Circle CI

License

MIT

Author

bouzuya <m@bouzuya.net> (http://bouzuya.net)

Package Sidebar

Install

npm i rfc6570-expand

Weekly Downloads

189

Version

0.2.0

License

MIT

Last publish

Collaborators

  • bouzuya