Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including stattic-parseurl with all npm packages installed. Try it out:

var statticParseurl = require("stattic-parseurl")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

stattic-parseurl v0.1.0

Parse an url. Made for stattic tool.

stattic-parseurl

npm npm

Parse an url. Made for stattic tool.

Example of use:

//Import
var ParseUrl = require('stattic-parseurl');

//Check
var url = ParseUrl('this/is/a/link.php?id=2&value=Hello#GO');

/* Returns:
{ path: 'this/is/a/link.php',
  file: 'link.php',
  ext: 'php',
  query: { id: '2', value: 'Hello' },
  hashtag: 'GO' }
*/

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free