Skip to content

ullisenmedia/social-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

social-url

Detects and parses user ids out of urls of well known social networks.

Circle CI

Example:

var socialUrl = require('social-url');
socialUrl.parse('https://twitter.com/npmjs');
// {
//   network: 'Twitter',
//   user: 'npmjs'
// }

API

.parse(String url) : Object parseResult

Parses a possible social url

url: the input url

parseResult: the parsed output with properties:

  • String|null network: the detected network ['Twitter', 'Google+', 'Facebook']
  • String|null user: the detected user

About

Url parsing for social network urls

Resources

License

Stars

Watchers

Forks

Packages

No packages published