1.8.0 • Published 1 year ago

social-url v1.8.0

Weekly downloads
160
License
ISC
Repository
github
Last release
1 year ago

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
1.8.0

1 year ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

6 years ago

1.3.0

7 years ago

1.2.13

8 years ago

1.2.12

8 years ago

1.2.11

8 years ago

1.2.10

8 years ago

1.2.9

8 years ago

1.2.8

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago