Skip to content

Commit 455969f

Browse files
committed
Suplement readme
1 parent dc92121 commit 455969f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
code-array
22
----------
3+
[![Build Status](https://travis-ci.org/jarst/code-array.svg?branch=master)](https://travis-ci.org/jarst/code-array)
4+
[![npm:](https://img.shields.io/npm/v/code-array.svg)](https://www.npmjs.com/packages/code-array)
5+
36
Simple utility module that will help you with converting:
47
* strings to character code arrays
58
* character code arrays to strings
69

10+
## Installation
11+
`npm install code-array --save`
12+
13+
## Example usage
14+
15+
```
16+
var codeArray = require('code-array');
17+
18+
var arr = codeArray.fromString('ABC'); // arr is [65, 66, 67]
19+
20+
var str = codeArray.toString([65, 66, 67]); // str is 'ABC'
21+
```
22+
723

824

0 commit comments

Comments
 (0)