Crocser
🚀 , lightweight, tinny url parser
Fast
Install
$ npm install crocser
# or
$ yarn add crocser
# or
$ pnpm install crocser
Basic example :
import { parse } from 'crocser'
const info = parse('https://vk.com/im?sel=c901')
console.log(info)
Then send a request:
{
"protocol": "https",
"hostname": "vk.com",
"subdomain": "",
"domain": "vk.com",
"domainWithoutSuffix": "vk",
"publicSuffix": "com",
"queryParamsResult": [["sel", "c901"]]
}
For contributors:
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- ???
- PROFIT!!!