1.0.16 • Published 7 years ago

legurl v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

legurl

Travis codecov npm npm MIT licensed

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago