Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy me a coffeeCINPM DownloadsNPM versionCoverage Status

This is a simple path template replacement tool for nodejs.

Installation

$ npm install path-templater

Usage

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;

Contributors

As always, thanks to our amazing contributors!

Made withcontributors.

License

This package is licensed under the MIT License.

About

This is a simple path template replacement tool for nodejs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp