An open API service indexing awesome lists of open source software.

https://github.com/jamesplease/unicode-escape.js

Convert a unicode string to a string of Javascript escape sequences.
https://github.com/jamesplease/unicode-escape.js

Last synced: 4 months ago
JSON representation

Convert a unicode string to a string of Javascript escape sequences.

Awesome Lists containing this project

README

        

# unicode-escape.js

Convert a unicode string to a string of Javascript escape sequences.

### Installation

Install via `npm`.

```sh
npm install unicode-escape
```

### Usage

```js
var unicodeEscape = require('unicode-escape');

unicodeEscape('pasta');
// > \u0070\u0061\u0073\u0074\u0061
```