split-uniq splits string by comma, trims & dedups Install $ npm install split-uniq Usage const splituniq = require('split-uniq') splituniq('beep, boop, beep') // ['beep', 'boop'] License MIT © Debjeet Biswas