1.0.5 • Published 5 years ago
hashtagifier v1.0.5
Hashtagifier
NPM package that takes text and turns it into a hashtag.
This is really just an exercise in creating an NPM package.
Set up
npm i hashtagifier
Use
Takes a string, strips it of non-alphanumeric characters and returns a hashtag.
const hashtagifier = require('hashtagifier');
hashtagifier('fizz buzz');
// should return '#fizzbuzz'
hashtagifier(12345678910);
// should throw "Parameter is not a string!"
Author
Ezra Mizrahi
Check it out here.