Skip to content

armancodv/url-path-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Generator (JavaScript)

This library generates string url path by getting entities and ids.

How to use

npm install url-path-generator
import urlPathGenerator from 'url-path-generator';
const example = urlPathGenerator.init('http://zara-co.com/')
    .addToPath('users', "550e8400-e29b-41d4-a716-446655440000")
    .addToPath('messages', "550e8400-e29b-41d4-a716-446655440000")
    .addToPath('attachments')
    .build();
console.log(example);
// it logs http://zara-co.com/users/550e8400-e29b-41d4-a716-446655440000/messages/550e8400-e29b-41d4-a716-446655440000/attachments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%