New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ansi-art

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-art

create ansi art using simple texts

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
1
Weekly downloads
 
Created
Source
ANSI ART

Create ANSI art using simple texts

screen shot 2017-04-25 at 11 51 53 am

Example:

import ANSI from 'ansi-art';

const mario = `
.....rrrrr..yyy.
....rrrrrrrrryy.
....oooyyxy.rrr.
...oyoyyyxyyyrr.
...oyooyyyoyyyr.
...ooyyyyoooor..
.....yyyyyyyrr..
..rrrrbrrrbrr..o
yyrrrrrbrrrb..oo
yyyrrrrbbbbYbboo
.y..brbbYbbbbboo
..ooobbbbbbbbboo
.ooobbbbbb......
.oo.............
`

let mario = ANSI.get(mario);

console.log(mario);

ANSI.get(text, options):

ParameterTypeDescription
textstringText to be converted into ANSI, Characters inside text represents the color. r for red, b for blue, '.' for transparent., See available colors:
optionsobjectMore options for ansi art
options.speakstringIf provided, render the text inside 'speech bubble' above the ANSI art

More Examples:

// Using Existing Arts, available inside '/src/arts/'
import ANSI, { MarioArt } from 'ansi-art';

console.log(ANSI.get(MarioArt));
// Using Speech bubble
import ANSI, { MarioArt } from 'ansi-art';

console.log(ANSI.get(MarioArt, {speak: 'Hello World'}));
screen shot 2017-04-25 at 12 45 50 pm

Keywords

FAQs

Package last updated on 25 Apr 2017

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc