Socket
Socket
Sign inDemoInstall

@types/chalk

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/chalk

TypeScript definitions for chalk v0.4.0


Version published
Weekly downloads
157K
decreased by-2.64%
Maintainers
1
Install size
6.67 kB
Created
Weekly downloads
 

Package description

What is @types/chalk?

@types/chalk provides TypeScript definitions for the chalk library, which is used to style terminal strings with colors and other text attributes.

What are @types/chalk's main functionalities?

Basic Coloring

This feature allows you to colorize text in the terminal. In this example, the text 'Hello world!' will be printed in blue.

import chalk from 'chalk';
console.log(chalk.blue('Hello world!'));

Text Styles

This feature allows you to apply different text styles such as bold, italic, underline, etc. In this example, the text 'Bold text' will be printed in bold.

import chalk from 'chalk';
console.log(chalk.bold('Bold text'));

Background Colors

This feature allows you to set background colors for the text. In this example, the text 'Red background' will be printed with a red background.

import chalk from 'chalk';
console.log(chalk.bgRed('Red background'));

Composing Styles

This feature allows you to compose multiple styles together. In this example, the text 'Styled text' will be printed in blue, with a red background and in bold.

import chalk from 'chalk';
console.log(chalk.blue.bgRed.bold('Styled text'));

Other packages similar to @types/chalk

Readme

Source

Installation

npm install --save @types/chalk

Summary

This package contains type definitions for chalk v0.4.0 (https://github.com/sindresorhus/chalk).

Details

Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/chalk

Additional Details

  • Last updated: Thu, 13 Oct 2016 19:19:49 GMT
  • File structure: ProperModule
  • Library Dependencies: none
  • Module Dependencies: none
  • Global values: Chalk

Credits

These definitions were written by Diullei Gomes https://github.com/Diullei, Bart van der Schoor https://github.com/Bartvds, Nico Jansen https://github.com/nicojs.

FAQs

Last updated on 13 Oct 2016

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc