log-symbols
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -1,4 +0,2 @@ | ||
'use strict'; | ||
module.exports = { | ||
const logSymbols = { | ||
info: 'ℹ️', | ||
@@ -9,1 +7,3 @@ success: '✅', | ||
}; | ||
export default logSymbols; |
@@ -8,3 +8,3 @@ /** | ||
``` | ||
import logSymbols = require('log-symbols'); | ||
import logSymbols from 'log-symbols'; | ||
@@ -18,10 +18,7 @@ console.log(logSymbols.success, 'Finished successfully!'); | ||
readonly info: string; | ||
readonly success: string; | ||
readonly warning: string; | ||
readonly error: string; | ||
}; | ||
export = logSymbols; | ||
export default logSymbols; |
@@ -1,4 +0,3 @@ | ||
'use strict'; | ||
const chalk = require('chalk'); | ||
const isUnicodeSupported = require('is-unicode-supported'); | ||
import chalk from 'chalk'; | ||
import isUnicodeSupported from 'is-unicode-supported'; | ||
@@ -19,2 +18,4 @@ const main = { | ||
module.exports = isUnicodeSupported() ? main : fallback; | ||
const logSymbols = isUnicodeSupported() ? main : fallback; | ||
export default logSymbols; |
{ | ||
"name": "log-symbols", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"description": "Colored symbols for various log levels. Example: `✔︎ Success`", | ||
@@ -13,4 +13,9 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"node": "./index.js", | ||
"default": "./browser.js" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -44,11 +49,10 @@ "scripts": { | ||
"chalk": "^4.1.0", | ||
"is-unicode-supported": "^0.1.0" | ||
"is-unicode-supported": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"strip-ansi": "^6.0.0", | ||
"ava": "^3.15.0", | ||
"strip-ansi": "^7.0.0", | ||
"tsd": "^0.14.0", | ||
"xo": "^0.38.2" | ||
}, | ||
"browser": "browser.js" | ||
} | ||
} |
@@ -18,3 +18,3 @@ # log-symbols | ||
```js | ||
const logSymbols = require('log-symbols'); | ||
import logSymbols from 'log-symbols'; | ||
@@ -21,0 +21,0 @@ console.log(logSymbols.success, 'Finished successfully!'); |
4657
Yes
+ Addedis-unicode-supported@1.3.0(transitive)
- Removedis-unicode-supported@0.1.0(transitive)
Updatedis-unicode-supported@^1.0.0