Socket
Book a DemoInstallSign in
Socket

find-hashtags

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-hashtags

Extracts the hashtags from a string

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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.

Keywords

hashtags

FAQs

Package last updated on 13 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts