var Filter = require('bad-words'), filter = new Filter(); console.log(filter.clean("Don't be an ash0le")); //Don't be an ******