node-twitter-text

Wrapper for official twitter text linkification

Usage no npm install needed!

<script type="module">
  import nodeTwitterText from 'https://cdn.skypack.dev/node-twitter-text';
</script>

README

node-twitter-text

A wrapper for twitter-text-js the official twitter text linkification.

Usage

Extract screen names:

var twttrtxt = require('node-twitter-text');
var usernames = twttrtxt.extractMentions("Mentioning @twitter and @jack");
console.log(usernames);
// ["twitter", "jack"]