Extract keywords from text to use it: npm install auto-keywords var extract = require('auto-keywords'); var keywords = extract('your text here');