Socket
Book a DemoInstallSign in
Socket

escapist

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

escapist

A minimal console styling library 🚀

1.0.1
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

escapist

A minimal console styling library 🚀

API

Escapist adds 2 new functions to the console global object;

console.setColor(id)

Sets the console's color. (ids can be found in the escapist.colors object).

Parameters

id: int

console.resetColor()

Resets the console's color to the default color.

Escapist also adds an object containing color IDs for you to use in the console.setColor function;

escapist.colors

foreground

  • black: 0
  • red: 1
  • green: 2,
  • yellow: 3
  • blue: 4
  • magenta: 5
  • cyan: 6
  • white: 7
  • brightRed: 8
  • brightGreen: 9
  • brightYellow: 10
  • brightBlue: 11
  • brightMagenta: 12
  • brightCyan: 13

background

  • black: 14
  • red: 15
  • green: 16
  • yellow: 17
  • blue: 18
  • magenta: 19
  • cyan: 20
  • white: 21
  • brightRed: 22
  • brightGreen: 23
  • brightYellow: 24
  • brightBlue: 25
  • brightMagenta: 26
  • brightCyan: 27

styles

  • bold: 28
  • underline: 29
  • reversed: 30

FAQs

Package last updated on 20 Jul 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.