slice-ansi 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +0 -3
  2. package/package.json +1 -1
  3. package/readme.md +1 -3
package/index.js CHANGED
@@ -36,9 +36,6 @@ var ESCAPE_CODES = {
36
36
  };
37
37
 
38
38
  function wrapAnsi(code) {
39
- if (code === undefined) {
40
- throw new Error('wtf: ' + code);
41
- }
42
39
  return ESCAPES[0] + '[' + code + 'm';
43
40
  }
44
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slice-ansi",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Slice a string with ANSI escape codes",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/slice-ansi",
package/readme.md CHANGED
@@ -1,18 +1,16 @@
1
1
  # slice-ansi
2
2
 
3
- [![Build Status](https://travis-ci.org/chalk/slice-ansi.svg?branch=master)](https://travis-ci.org/chalk/slice-ansi)
3
+ [![Build Status](https://travis-ci.org/vorpaljs/slice-ansi.svg?branch=master)](https://travis-ci.org/vorpaljs/slice-ansi)
4
4
  [![XO: Linted](https://img.shields.io/badge/xo-linted-blue.svg)](https://github.com/sindresorhus/xo)
5
5
 
6
6
  > Slice a string with [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
7
7
 
8
-
9
8
  ## Install
10
9
 
11
10
  ```
12
11
  $ npm install --save slice-ansi
13
12
  ```
14
13
 
15
-
16
14
  ## Usage
17
15
 
18
16
  ```js