Socket
Socket
Sign inDemoInstall

nanocolors-template

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nanocolors-template

Tagged template literal for nanocolors


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.1.0

  • Refactoring
  • Added test
  • Support for nested calls
  • Added TS support
  • Add ESM support

Readme

Source

Nano Colors Template

Tagged template literal for nanocolors.

const { colorize } = require("nanocolors-template");

colorize`{red Is red color text}`;

const text = "Is yellow color red background";
colorize`{yellow.bgRed ${text} text}`;

colorize`{bgBlack.green.strikethrough is red color black background strikethrough text}`;

colorize`{red Is red color and {yellow yellow color} text}`;

Blocks are delimited by an opening curly brace {, a style, some content, and a closing curly brace }.

Keywords

FAQs

Last updated on 29 Sep 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc