twitter-extract-mentions

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i twitter-extract-mentions

Weekly Downloads

1

Version

1.0.1

License

Apache license 2.0

Unpacked Size

18.1 kB

Total Files

7

Last publish

Collaborators

  • mahboubii