lesca-url-parameters
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

NPM React React React React React NPM

Why use it?

use to pass values by url

Live Demo

Installation

npm install lesca-url-parameters --save

Usage

import QueryString from 'lesca-url-parameters';

// url = "https://www.example.com/?name=James&age=40&birthday=1981";
const name = QueryString.get('name'); // James
const age = QueryString.get('age'); // 40
const birthday = QueryString.get('birthday'); // 1981

Development

Methods

method description return
.get(key:string):string get url value by key value
.remove(key:string):string get url after remove key url
.root() get html file root url
.file() get html file file name

Features

  • maintain if necessary

Package Sidebar

Install

npm i lesca-url-parameters

Weekly Downloads

7

Version

2.0.8

License

MIT

Unpacked Size

21.3 kB

Total Files

27

Last publish

Collaborators

  • jameshsu1125