1.0.5 • Published 4 years ago
liurljson v1.0.5
The easy way to read url and parse it into JSON.
$ npm install liurljson
var liurl = require('LIURLJSON');
/* two ways of adding url*/
//first=> writing url directly
var url = "https://example.com/path/to/page?name=ferret&color=purple"
var json = liurl.parse(url);
//second=> requesting url
var json = liurl.parse(req.url);
full code:
var liurl = require('LIURLJSON');
var url = "https://example.com/path/to/page?name=ferret&color=purple"
var json = liurl.parse(url);
GitHub Profile Of LIURL -- created by Mridul