0.0.6 • Published 4 months ago

parsewe-url v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

parsewe-url

A simple url parser.

Installation

NPM:

npm install parwese-url

Yarn:

yarn add parwese-url

Usage

Import the package.

import parseUrl from 'parsewe-url';

The queries extracted after the ?, split at the &, and query values are extracted after the =.

Example:

// url: 'https://localhost:9000/profile?fields=media,id,profile_photo&auth_token=35Df&8g_W4&redirect=/nextpage' 

queries = parseUrl(); 
console.log(queries); 
// {fields: 'media,id,profile_photo', auth_token: '35Df&8g_W4', redirect: '/nextpage'}
0.0.6

4 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago