Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
This is a simple path template replacement tool for nodejs.
License
NotificationsYou must be signed in to change notification settings
jaywcjlove/path-templater
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a simple path template replacement tool for nodejs.
$ npm install path-templater
importpathTemplaterfrom'path-templater';pathTemplater('/:name',{name:'wcj'})// => /wcjpathTemplater('/:name/:name',{name:'wcj'})// => /wcj/wcjpathTemplater('http://localhost/:name/:name',{name:'wcj'})// => http://localhost/wcj/wcjpathTemplater('http://github.com/:owner/:repo',{owner:'jaywcjlove',repo:'path-templater'})// => http://github.com/jaywcjlove/path-templaterpathTemplater(':apiBaseUrl/:owner/:repo',{owner:'jaywcjlove',repo:'path-templater',apiBaseUrl:'http://github.com'})// => http://github.com/jaywcjlove/path-templaterpathTemplater('http://localhost:3001/:name/:name',{name:'wcj'})// => http://localhost:3001/wcj/wcjpathTemplater('http://localhost:3001/:name/:name?id=:user',{name:'wcj',user:'jaywcjlove'})// => http://localhost:3001/wcj/wcj?id=jaywcjlovepathTemplater(':apiBaseUrl/:owner/:repo',{owner:'jaywcjlove',repo:'path-templater'})// 🚨 => Could not find url parameter apiBaseUrl in passed options object;
As always, thanks to our amazing contributors!
Made withcontributors.
This package is licensed under the MIT License.
About
This is a simple path template replacement tool for nodejs.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.