0.1.0 • Published 4 years ago
help-url v0.1.0
help-url
Small js package I use to help me deal with url and query parameters
Install
$ npm install help-urlImport
This package is pure ESM. It cannot be require()'d from CommonJS.
Use import foo from 'foo' instead of const foo = require('foo') to import the package.
// Load entire build
import * as helpUrl from 'help-url';
// Load by method
import {getQueryString} from 'help-url';If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
You also need to make sure you're on the latest minor version of Node.js. At minimum Node.js 12.20, 14.14, or 16.0.
Read more here: sindresorhus/esm-package
Usage
main([1,2,3], (element) => typeof element === 'string');
//=> false
main(['1', '2', '3'], (element) => typeof element === 'string');
//=> trueLicense
MIT © Paul Nodet
0.1.0
4 years ago