1.0.16 • Published 7 years ago
legurl v1.0.16
legurl
Node.js package allowing you to easily build url by passing an object with some properties.
Installation
npm i legurl
Usage
const legurl = require('legurl');
legurl
.getUrl({
schema: 'https',
hostname: 'www.example.com',
port: '443',
queryStrings: [{ key: 'wsdl' }, { key: 'project_id', value: 'zero' }]
})
.then(console.log);
// will log `https://www.example.com:443/?wsdl&project_id=zero`
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT