Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

has-unicode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-unicode - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

index.js

@@ -13,10 +13,5 @@ "use strict"

var isUTF8 = /[.]UTF-8/
if (isUTF8.test(process.env.LC_ALL)
|| process.env.LC_CTYPE == 'UTF-8'
|| isUTF8.test(process.env.LANG)) {
return true
}
return false
var isUTF8 = /UTF-?8$/i
var ctype = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG
return isUTF8.test(ctype)
}
{
"name": "has-unicode",
"version": "2.0.0",
"version": "2.0.1",
"description": "Try to guess if your terminal supports unicode",

@@ -17,2 +17,5 @@ "main": "index.js",

],
"files": [
"index.js"
],
"author": "Rebecca Turner <me@re-becca.org>",

@@ -19,0 +22,0 @@ "license": "ISC",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc