social-url

1.8.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i social-url

Weekly Downloads

11

Version

1.8.0

License

ISC

Unpacked Size

60.5 kB

Total Files

29

Last publish

Collaborators

  • woorank-admin
  • janpotoms
  • ndemoor
  • woorank-ci