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

nanocolors

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanocolors - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

index.browser.js

@@ -67,3 +67,3 @@ let nope = s => s

export {
module.exports = {
isColorSupported,

@@ -70,0 +70,0 @@ reset,

@@ -57,3 +57,3 @@ type Color = (text: string | number) => string

*/
export function createColors(enabled: boolean | undefined): Colors
export function createColors(enabled?: boolean): Colors

@@ -60,0 +60,0 @@ // Modifiers

@@ -1,2 +0,2 @@

import tty from 'tty'
let tty = require('tty')

@@ -146,3 +146,3 @@ let isDisabled = 'NO_COLOR' in process.env

export {
module.exports = {
isColorSupported,

@@ -149,0 +149,0 @@ reset,

{
"name": "nanocolors",
"version": "0.1.1",
"version": "0.1.2",
"description": "A tiny and fast Node.js library for formatting terminal text with ANSI colors",

@@ -23,20 +23,4 @@ "keywords": [

"browser": {
"./index.js": "./index.browser.js",
"./index.cjs": "./index.browser.cjs"
},
"type": "module",
"main": "index.cjs",
"module": "index.js",
"react-native": "index.js",
"exports": {
".": {
"browser": "./index.browser.js",
"require": "./index.cjs",
"import": "./index.js",
"default": "./index.js",
"types": "./index.d.ts"
},
"./package.json": "./package.json",
"./index.d.ts": "./index.d.ts"
"./index.js": "./index.browser.js"
}
}
}

@@ -121,1 +121,8 @@ # Nano Colors

from color support auto-detection.
## Thanks
API design was inspired
by [`colorette`](https://github.com/jorgebucaran/colorette)
and [`kleur`](https://github.com/lukeed/kleur).
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