Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 608 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 608 Bytes

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