Find usernames across social networks
npm install jsherlock
check username availability across social networks
import jsherlock from 'jsherlock';
const checker = new jsherlock('username');
checker
.checkAll()
.then(status => {
console.log(status);
})
.catch(err => {
console.log(err);
});
//=> [
//=> {
//=> "userName": "username",
//=> "siteName": "siteName",
//=> "uri": "url://url.url/username",
//=> "exist": false
//=> }
//=> ]
check username availability for individual site
import jsherlock from 'jsherlock';
const checker = new jsherlock('username');
checker
.checkFor('site')
.then(status => {
console.log(status);
})
.catch(err => {
console.log(err);
});
//=> {
//=> "userName": "username",
//=> "siteName": "siteName",
//=> "uri": "url://url.url/username",
//=> "exist": false
//=> }
available sites
import jsherlock from 'jsherlock';
const sites = jsherlock.sites();
console.log(sites);
//=> ["site"]
MIT © Aung Myo Kyaw