Skip to content
Permalink
Browse files
Require Node.js 8
  • Loading branch information
sindresorhus committed Mar 18, 2019
1 parent 1a5ac93 commit 8189918ed81a0c7cae5a4716eac5df81bd1c1bbf
Showing with 10 additions and 4 deletions.
  1. +0 −1 .travis.yml
  2. +8 −0 index.d.ts
  3. +2 −3 package.json
@@ -2,4 +2,3 @@ language: node_js
node_js:
- '10'
- '8'
- '6'
@@ -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;
@@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd-check"
@@ -22,7 +22,6 @@
"keywords": [
"string",
"character",
"char",
"unicode",
"width",
"visual",
@@ -45,7 +44,7 @@
"fixed-width"
],
"dependencies": {
"string-width": "^3.1.0"
"string-width": "^4.0.0"
},
"devDependencies": {
"ava": "^1.3.1",

0 comments on commit 8189918

Please sign in to comment.