twitter-extract-mentions
v1.0.1
Published
extractMentions function of twitter-text lib
Downloads
3
Maintainers
Readme
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