1.0.8 • Published 7 years ago

twitter-validate v1.0.8

Weekly downloads
17
License
-
Repository
github
Last release
7 years ago

Twitter Validate

A Twitter handle validation tool. Checks whether a provided handle meets Twitter's handle criteria. Also provides a method to check whether a provided twitter handle already exists online.

Installation

$ npm install twitter-validate

Usage

NameTypeDescription
handlestringThe Twitter handle to validate against Twitter specification
returnsbooleanWhether handle is valid
validate(handle);
NameTypeDescription
handlestringThe Twitter handle to check existence of
handleExistsbooleanWhether the handle exists on Twitter
exists(handle, function(handleExists){});

Example

var validate = require('twitter-validate').validate;
var exists = require('twitter-validate').exists;

validate("@benderham88") // boolean

exists("@benderham88", function(handleExists){
    handleExists // boolean
});
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago