1.0.1 • Published 8 years ago

find-hashtags v1.0.1

Weekly downloads
752
License
BSD-3
Repository
github
Last release
8 years ago

Detect Hashtags

Travis CI Test Status

Get an array of hashtags extracted from a string.

Usage

var findHashtags = require('find-hashtags');

console.log(findHashtags('This #text contains a number of #useful hashtags'));
// ['text', 'useful']

The function returns an array containing the hashtags found within a string. It only matches letters and numbers as components of a hashtag.