1.8.0 • Published 3 years ago
social-url v1.8.0
social-url
Detects and parses user ids out of urls of well known social networks.
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
3 years ago
1.7.2
5 years ago
1.7.1
5 years ago
1.7.0
5 years ago
1.6.1
5 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
9 years ago
1.2.13
9 years ago
1.2.12
9 years ago
1.2.11
9 years ago
1.2.10
9 years ago
1.2.9
9 years ago
1.2.8
9 years ago
1.2.7
9 years ago
1.2.6
9 years ago
1.2.4
10 years ago
1.2.3
10 years ago
1.2.2
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago