Skip to content

Commit

Permalink
Require Node.js 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 18, 2019
1 parent 1a5ac93 commit 8189918
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '10'
- '8'
- '6'
8 changes: 8 additions & 0 deletions index.d.ts
@@ -1,4 +1,12 @@
/**
Get the visual width of the widest line in a string - the number of columns required to display it.
@example
```
import widestLine from 'widest-line';
widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2
```
*/
export default function widestLine(input: string): number;
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd-check"
Expand All @@ -22,7 +22,6 @@
"keywords": [
"string",
"character",
"char",
"unicode",
"width",
"visual",
Expand All @@ -45,7 +44,7 @@
"fixed-width"
],
"dependencies": {
"string-width": "^3.1.0"
"string-width": "^4.0.0"
},
"devDependencies": {
"ava": "^1.3.1",
Expand Down

0 comments on commit 8189918

Please sign in to comment.