https://github.com/mscoutermarsh/tweet-characters-left
:bird: Node module for determining # of characters left in a tweet.
https://github.com/mscoutermarsh/tweet-characters-left
Last synced: 4 months ago
JSON representation
:bird: Node module for determining # of characters left in a tweet.
- Host: GitHub
- URL: https://github.com/mscoutermarsh/tweet-characters-left
- Owner: mscoutermarsh
- License: mit
- Created: 2015-12-27T01:29:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-09T14:48:32.000Z (11 months ago)
- Last Synced: 2024-10-12T19:24:24.729Z (9 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tweet-characters-left
- Size: 18.6 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tweet-characters-left :bird:
[](https://badge.fury.io/js/tweet-characters-left)
[](https://travis-ci.org/mscoutermarsh/tweet-characters-left)
[](https://codeclimate.com/github/mscoutermarsh/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
```Bash
npm install tweet-characters-left --save
```## Usage
```JavaScript
var tweetCharactersLeft = require("tweet-characters-left");// Twitters most common tweet
tweetCharactersLeft("Bieber! Marry me!");
// => 263
```## Tests
```Bash
npm test
```## Contributing :heart:
Want to make this better? Great! :smile:
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](http://contributor-covenant.org) code of conduct.
## License
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).