twitter-extract-mentions

v1.0.1
extractMentions function of twitter-text lib
node javascript extract mention twitter

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

npm i twitter-extract-mentions

Metadata

Downloads

Maintainers