is-unicode-supported
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -6,3 +6,3 @@ /** | ||
``` | ||
import isUnicodeSupported = require('is-unicode-supported'); | ||
import isUnicodeSupported from 'is-unicode-supported'; | ||
@@ -13,4 +13,2 @@ isUnicodeSupported(); | ||
*/ | ||
declare function isUnicodeSupported(): boolean; | ||
export = isUnicodeSupported; | ||
export default function isUnicodeSupported(): boolean; |
@@ -1,4 +0,2 @@ | ||
'use strict'; | ||
module.exports = () => { | ||
export default function isUnicodeSupported() { | ||
if (process.platform !== 'win32') { | ||
@@ -13,2 +11,2 @@ return true; | ||
process.env.TERM === 'alacritty'; | ||
}; | ||
} |
{ | ||
"name": "is-unicode-supported", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Detect whether the terminal supports Unicode", | ||
@@ -13,4 +13,6 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -38,3 +40,3 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"ava": "^3.15.0", | ||
"tsd": "^0.14.0", | ||
@@ -41,0 +43,0 @@ "xo": "^0.38.2" |
@@ -18,3 +18,3 @@ # is-unicode-supported | ||
```js | ||
const isUnicodeSupported = require('is-unicode-supported'); | ||
import isUnicodeSupported from 'is-unicode-supported'; | ||
@@ -21,0 +21,0 @@ isUnicodeSupported(); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3553
0
Yes
20