Socket
Socket
Sign inDemoInstall

is-unicode-supported

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

6

index.d.ts

@@ -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();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc