Steps to use word-length-counter const wlc = require('word-length-counter') let x = wlc("your string here") console.log(x)