Comparing version 0.2.1 to 0.3.0
@@ -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() |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
99
0
16631
512
2