Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.21 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.21 KB

Under Construction

Hashtags Parser Coverage Status Build Status

cli example - test it yourself

let hashtagsParser = require('hashtags-parser');

this is the interesting part - 🚀🚀🚀

hashtagsParser("#freetibet")  // = > ["free", "tibet"]
hashtagsParser("#realdonaldtrump")  // = > ["real","donald","trump"]
hashtagsParser("#FREETIBET")  // = > ["free", "tibet"]
hashtagsParser("#freetibetorg")  // = > ["free", "tibet"]

this is the easy part

hashtagsParser("#FreeTibet") // = > ["free", "tibet"]
hashtagsParser("#3Tibet")  // = > ["free", "tibet"]
hashtagsParser("#free_tibet")  // = > ["free", "tibet"]
hashtagsParser("#FREE_TIBET") // =>  ["free", "tibet"]
hashtagsParser("#freeTIBET") // =>  ["free", "tibet"]
hashtagsParser("#FreeTIBET") // =>  ["free", "tibet"]
hashtagsParser("#freeTibet") // =>  ["free", "tibet"]