Socket
Socket
Sign inDemoInstall

msg-attention

Package Overview
Dependencies
8
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    msg-attention

Display attention-grabbing messages in the terminal


Version published
Maintainers
1
Install size
130 kB
Created

Readme

Source

msg-attention

server started

Display attention-grabbing messages in the terminal.

Table of Contents

Background

Forked from @dylang/grunt-attention, as I needed to use it outside of Grunt.

Install

npm install --save msg-attention

or

yarn add msg-attention

Usage


TODO

files pushed

API

message required

Text to display.

border optional

Border style.

Included styles: thin, double, stacked, comment.

Single character repeated: Provide a single character and it will repeat it as the border such as ! or *.

New style: Provide a 9-character string for all sides. See lib/borders.js for examples.

borderColor optional

Color for the border.

Choices are: black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray.

Currently you can't set both the foreground and the background, that will be resolved in a future release.

More examples

examples

Tests

Run npm test to lint and run the tests.

Contribute

See the contribute file!

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

Thanks to

@dylang for the idea, the original package and for releasing both of them under the MIT license.

License

MIT © Giacomo Rossetto

Keywords

FAQs

Last updated on 23 May 2018

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