Miss any of our Open RFC calls?Watch the recordings here! »

hashtagfy2

1.0.3 • Public • Published

hashtagfy2

Convert any text to #hashtag. This fork of hashtagfy replace string template with string concatenation.

Installation

npm install --save hashtagfy2

How to use

const hashtagfy = require('hashtagfy2')
 
const hashtag1 = hashtagfy('Any text');
// hashtag1 == '#AnyText'
 
const hashtag2 = hashtagfy('Similar-text_more');
// hashtag2 == '#SimilarTextMore'
 
const hashtag3 = hashtagfy('And the last', { capitalize: false });
// hashtag3 == '#andthelast'

NOTE: The capitalize option is optional. Is true by default.

Install

npm i hashtagfy2

DownloadsWeekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

5.3 kB

Total Files

7

Last publish

Collaborators

  • avatar