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 15, 2018
1 parent e70127f commit 8b40bbb
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '10'
- '8'
- '6'
- '4'
1 change: 1 addition & 0 deletions browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';

module.exports = {
info: 'ℹ️',
success: '✅',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -39,12 +39,12 @@
"stdout"
],
"dependencies": {
"chalk": "^2.0.1"
"chalk": "^2.4.1"
},
"devDependencies": {
"ava": "*",
"strip-ansi": "^4.0.0",
"xo": "*"
"ava": "^0.25.0",
"strip-ansi": "^5.0.0",
"xo": "^0.23.0"
},
"browser": "browser.js"
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# log-symbols [![Build Status](https://travis-ci.org/sindresorhus/log-symbols.svg?branch=master)](https://travis-ci.org/sindresorhus/log-symbols)

<img src="screenshot.png" width="226" align="right">
<img src="screenshot.png" width="226" height="192" align="right">

> Colored symbols for various log levels
Expand Down
9 changes: 5 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict';
import test from 'ava';
import stripAnsi from 'strip-ansi';
import m from '.';
import logSymbols from '.';

for (const key of Object.keys(m)) {
console.log(m[key], key);
// TODO: Use `Object.entries` when targeting Node.js 8
for (const key of Object.keys(logSymbols)) {
console.log(logSymbols[key], key);
}
console.log('');

test('returns log symbols', t => {
t.true(stripAnsi(m.success) === '✔' || stripAnsi(m.success) === '√');
t.true(stripAnsi(logSymbols.success) === '✔' || stripAnsi(logSymbols.success) === '√');
});

0 comments on commit 8b40bbb

Please sign in to comment.