simple-uriparser

1.0.0 • Public • Published

Simple URI parser

Utility merged URL with parameter and return URL parsed

Install

$ npm install --save simple-uriparser

Use

const uriParser = require('simple-uriparser');

const params = {
  id: '1a2b3c4d5e6f',
  lang: 'es'
}

const urlParsed = uriParser.parser('http://url.test.com/:id?lang=:lang', params);

Developers run test

$ npm run test

/simple-uriparser/

    Package Sidebar

    Install

    npm i simple-uriparser

    Weekly Downloads

    7

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.24 kB

    Total Files

    8

    Last publish

    Collaborators

    • andreybejarano