0.0.0 • Published 7 years ago

urlsearchparams-to-cli v0.0.0

Weekly downloads
8
License
ISC
Repository
bitbucket
Last release
7 years ago

URLSearchParams to CLI

Convert URL query params to a command line arguments array

This is useful for example to process URL query params using minimist or unify-config, or any other command line arguments parser.

Install

npm install urlsearchparams-to-cli

API

  • searchParams: URLSearchParams instance. If it's a string, it gets parsed first. By default it uses the value located at window.location.search.
0.0.0

7 years ago