A Node module for determining the number of characters left in a tweet. It uses Twitter's official TwitterText library to count characters.
npm install tweet-characters-left --save
var tweetCharactersLeft = require("tweet-characters-left");
// Twitters most common tweet
tweetCharactersLeft("Bieber! Marry me!");
// => 263
npm test
Want to make this better? Great! 😄
Bug reports and pull requests are welcome on GitHub at https://github.com/mscoutermarsh/tweet-characters-left. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The module is available as open source under the terms of the MIT License.