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
2
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.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
2
Weekly downloads
 
Created
Source

ANSI ART

npm npm

Create ANSI art and render it with speech bubbles inside node.

https://gauravchl.github.io/ansi-art/webapp/

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

Install

  1. Create and download the ANSI art from webapp: https://gauravchl.github.io/ansi-art/webapp/
  2. Install npm install ansi-art package to render the downloaded art file.
  3. You can also render the pre-made art files in '/src/arts/'.

Examples

// Using existing art
let ANSI = require('ansi-art').default;
let mario = ANSI.get({artName: 'mario'});
console.log(mario);
// Or use it with ES6 module
import ANSI from 'ansi-art';
let mario = ANSI.get({artName: 'mario'});
console.log(mario);
// Using custom art file
import ANSI from 'ansi-art';
let art = ANSI.get({filePath: '~/desktop/custom-art.ansi'})
console.log(art);
// Using random art
import ANSI from 'ansi-art';
let art = ANSI.get({speechText: 'Hello world'})
console.log(art);
// Using Speech bubble
import ANSI from 'ansi-art';
let art = ANSI.get({artName: 'mario', speechText: 'Hello world'}
console.log(art);

ANSI.get(options)

ParameterTypeDescription
options.filePathstringPath to custom ANSI art file(eg: ~/mario.ansi)
options.artNamestringName of existing ANSI art available within package.See available arts
options.speechTextstringIf provided, render the text inside 'speech bubble' above the ANSI art
options.speechBubbleOptionsobjectoptions for speech bubble, See available options here

screen shot 2017-05-14 at 4 57 37 pm

Mario credits: https://github.com/acarl005/node-super-mario

Parrot credits: https://github.com/matheuss/parrotsay-api

Contributing

Please feel free to submit any bugs or suggestions as issues or request to add any art into existing collections. Pull requests are welcome.

Keywords

FAQs

Package last updated on 17 Oct 2019

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