tweet-characters-left 🐦
A Node module for determining the number of characters left in a tweet. It uses Twitter's official TwitterText library to count characters.
Installation
npm install tweet-characters-left --save
Usage
var tweetCharactersLeft = require("tweet-characters-left"); // Twitters most common tweettweetCharactersLeft("Bieber! Marry me!");// => 263
Tests
npm test
Contributing ❤️
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.
License
The module is available as open source under the terms of the MIT License.