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

nanosymbols

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanosymbols

Lightweight coloured symbols for various log levels

  • 5.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

nanosymbols

Lightweight coloured symbols for various log levels

import nanoSymbols from "nanosymbols";

// if Unicode supported => ℹ, ✔, ⚠, ✖
// otherwise            => i, √, ‼, ×
console.log(
  nanoSymbols.info,
  nanoSymbols.success,
  nanoSymbols.warning,
  nanoSymbols.error,
);

Includes fallbacks for Windows CMD which only supports a limited character set.

Use this (instead of the original log-symbols by Sindre Sorhus), if:

  • you care for smaller install size (50 kB 12 kB)
  • you only use picocolors-based dev tools (PostCSS, Stylelint, SVGO, ...)
    • or you don't have any terminal colouring libraries at all
  • you want a faster, lighter, and more pleasant dev experience (220 MB 114 MB in node_modules, takes 22 sec 8 sec to install)

Install

npm install nanosymbols

Licence

MIT © 2021 Nikita Karamov

MIT © 2021 Sindre Sorhus

Keywords

FAQs

Package last updated on 28 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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