Socket
Socket
Sign inDemoInstall

ansi

Package Overview
Dependencies
0
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.3.0

.jshintrc

39

package.json

@@ -1,20 +0,21 @@

{ "name": "ansi"
, "description": "Advanced ANSI formatting tool for Node.js"
, "keywords": [ "ansi", "formatting", "cursor", "color", "terminal", "rgb", "256", "stream" ]
, "version": "0.2.1"
, "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)"
, "repository": { "type": "git", "url": "git://github.com/TooTallNate/ansi.js.git" }
, "main": "./lib/ansi.js"
, "bin": {
"beep": "./examples/beep/index.js"
, "clear": "./examples/clear/index.js"
, "starwars": "./examples/starwars.js"
}
, "scripts": {
"test": "mocha --reporter spec"
}
, "devDependencies": {
"mocha": "*"
}
, "engines": { "node": "*" }
{
"name": "ansi",
"description": "Advanced ANSI formatting tool for Node.js",
"keywords": [
"ansi",
"formatting",
"cursor",
"color",
"terminal",
"rgb",
"256",
"stream"
],
"version": "0.3.0",
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/ansi.js.git"
},
"main": "./lib/ansi.js"
}

@@ -10,5 +10,2 @@ ansi.js

The code for the example in the screenshot above can be found in the
`examples/imgcat` directory.
#### Features:

@@ -55,3 +52,3 @@

// You can use the regular logging functions, text will be green
// You can use the regular logging functions, text will be green:
console.log('This is blood red, bold text')

@@ -64,2 +61,12 @@

// to go to a location (x,y) on the console
// note: 1-indexed, not 0-indexed:
cursor.goto(10, 5).write('Five down, ten over')
// to clear the current line:
cursor.horizontalAbsolute(0).eraseLine().write('Starting again')
// to go to a different column on the current line:
cursor.horizontalAbsolute(5).write('column five')
// Clean up after yourself!

@@ -66,0 +73,0 @@ cursor.reset()

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