Skip to content

Commit

Permalink
Require Node.js 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 21, 2018
1 parent d5cf99b commit 7945ed8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -3,4 +3,3 @@ node_js:
- '10'
- '8'
- '6'
- '4'
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -2,7 +2,7 @@
const os = require('os');
const hasFlag = require('has-flag');

const env = process.env;
const {env} = process;

let forceColor;
if (hasFlag('no-color') ||
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"ava": "^0.25.0",
"import-fresh": "^2.0.0",
"xo": "^0.20.0"
"xo": "^0.23.0"
},
"browser": "browser.js"
}
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -16,6 +16,7 @@

---


## Install

```
Expand Down
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -34,7 +34,7 @@ test('return true if `FORCE_COLOR` is in env, but honor 256', t => {
t.is(result.stdout.level, 2);
});

test('return true if `FORCE_COLOR` is in env, but honor 256', t => {
test('return true if `FORCE_COLOR` is in env, but honor 256 #2', t => {
process.argv = ['--color=256'];
process.env.FORCE_COLOR = '1';
const result = importFresh('.');
Expand Down

0 comments on commit 7945ed8

Please sign in to comment.