Skip to content

statticjs/stattic-parseurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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