README
mention-extractor
See the src/index file for all functions
import { extractAllAtMentions } from 'mention-extractor';
const mentions = extractAllAtMentions(comment, { removeAt: true });
Extract at mentions from string
<script type="module">
import mentionExtractor from 'https://cdn.skypack.dev/mention-extractor';
</script>
See the src/index file for all functions
import { extractAllAtMentions } from 'mention-extractor';
const mentions = extractAllAtMentions(comment, { removeAt: true });