o0101 / nuRL

Extends URL parsing to include .tld information and heuristics to extract data from the path and query.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nuRL

Extends URL parsing to include .tld information and heuristics to extract data from the path and query.

pro-nounce

nu-RL

examples

nuRL('https://example.com/products/12345?alpha=xyz&gamma=abbbcaddeffff&beta=1324-234484-12323-12')

/*

{
  ...normalURLfields,
  productID: 12345,
  name: 'example'
  tld: '.com',
  alpha: 'xyz',
  beta: {
    type: 'uuid',
    value: '...."
  },
  gamma: {
    type: 'base64-json',
    value: {
      hi: 1
    }
  }
}

seems fun

About

Extends URL parsing to include .tld information and heuristics to extract data from the path and query.

License:MIT License