substitute substitute :props in strings. Installation $ component install segmentio/substitute Example var sub = require('substitute'); sub('replace some: :s', { s: 'stuff' }); License (MIT)