1.0.1 • Published 5 years ago

twitter-extract-mentions v1.0.1

Weekly downloads
19
License
Apache license 2....
Repository
github
Last release
5 years ago

twitter-extract-mentions

Extract mentions from text, customized version of extractMentions function of twitter-text

Install

npm:

npm install twitter-extract-mentions
//or yarn
yarn add twitter-extract-mentions

Usage

const extractMentions = require('twitter-extract-mentions');
const usernameLength = 15;
extractMentions('hey @Elon', usernameLength); // usernameLength default to 30 char

Copyright and License

Copyright 2012-2018 Twitter, Inc and other contributors

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0