url-monkey
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

url-monkey

let monkey types url for you

random string provided by randexp

Install

npm i -S url-monkey

Usage

import URLMonkey from 'url-monkey'
 
const monkey = new URLMonkey('www.google.com', {
  path: /^\/greeting\/([^\/]+?)(?:\/)?$/i,
  // protocol: 'https',  // can be regex, too
  // port: 80,  // can be regex, too
})
 
Array(5).fill(0).forEach(() => console.log(monkey.type()))
// www.google.com/GREeTinG//
// www.google.com/gReetinG/
// www.google.com/GreEtiNg/OzpmeK(vLGPHcdYPlgAE!d(NybsGTl++hBNzEHbl(,+quITlnOXHieEan$prEcY!ywjHRSwl/
// www.google.com/gReEtING/Uno&h@wSAT@O,cAu~HyL:+arerICgnaD~RydS/
// www.google.com/gREETiNg//

License

MIT

Package Sidebar

Install

npm i url-monkey

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

4.47 kB

Total Files

5

Last publish

Collaborators

  • exoticknight