Necessitates Proper Modularity

    nanosymbols
    TypeScript icon, indicating that this package has built-in type declarations

    5.1.3 • Public • Published

    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

    Related

    Licence

    MIT © 2021 Nikita Karamov

    MIT © 2021 Sindre Sorhus

    Install

    npm i nanosymbols

    DownloadsWeekly Downloads

    3

    Version

    5.1.3

    License

    MIT

    Unpacked Size

    5.54 kB

    Total Files

    6

    Last publish

    Collaborators

    • kytta