Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 591 Bytes

File metadata and controls

26 lines (15 loc) · 591 Bytes

unicodechar-string Build Status

Convert unicode escape sequence to a character!

Install

$ npm install --save unicodechar-string

Usage

const unicodestring = require('unicodechar-string');

const str = unicodestring('I wish I were a \ud83e\udd84, so I could stab idiots with my head!');

console.log(str)
// => 'I wish I were a 🦄, so I could stab idiots with my head!'

License

MIT © Rishi Giri