Skip to content

saintedlama/template-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

template-url

Super simple no fluff rest URL style formatting for node.

Installation

> npm install template-url --save

Usage

var templateUrl = require('template-url');

var url = templateUrl('https://api.github.com/repos/:owner/:repo', { owner : 'saintedlama', repo: 'template-url' }); 

// Generates https://api.github.com/repos/saintedlama/template-url

Be aware that this module throws errors in case a part of the template URL cannot be resolved.

The End

This is a 27 lines module. Nothing more to say

About

Super simple no fluff rest URL style formatting for node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published