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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    143
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    143
  • 0.1.0
    0

Package Sidebar

Install

npm i rfc6570-expand

Weekly Downloads

96

Version

0.2.0

License

MIT

Last publish

Collaborators

  • bouzuya