Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codedotjs/unicodechar-string
:unicorn: Convert unicode escape sequence to a character
https://github.com/codedotjs/unicodechar-string
character convert emoji escape sequence string unicode
Last synced: 7 days ago
JSON representation
:unicorn: Convert unicode escape sequence to a character
- Host: GitHub
- URL: https://github.com/codedotjs/unicodechar-string
- Owner: CodeDotJS
- License: mit
- Created: 2018-05-08T00:11:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T00:54:12.000Z (over 6 years ago)
- Last Synced: 2024-04-26T03:01:07.665Z (8 months ago)
- Topics: character, convert, emoji, escape, sequence, string, unicode
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## unicodechar-string [![Build Status](https://travis-ci.org/CodeDotJS/unicodechar-string.svg?branch=master)](https://travis-ci.org/CodeDotJS/unicodechar-string)
> Convert unicode escape sequence to a character!
## Install
```
$ npm install --save unicodechar-string
```## Usage
```js
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](http://rishigiri.ml)