0.1.0 • Published 8 years ago

stattic-parseurl v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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' }
*/