Skip to content

Added escape character

Compare
Choose a tag to compare
@rodrigogs rodrigogs released this 05 Jun 17:55
· 5 commits to master since this release

Now you're able to escape any character from your pattern using \ character.

Ex.:

const Kairos = require('kairos');

const time = Kairos.new('15:30:28', 'hh:mm:ss').toString('\\hh:mm:\\ss');

console.log(time); // 'h5:30:s8'