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

blessed-contrib

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blessed-contrib - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

examples/dashboard.js

@@ -44,3 +44,3 @@ var blessed = require('blessed')

, label: 'Active Processes'
, columnSpacing: 16})
, columnSpacing: [24, 10, 10]})

@@ -47,0 +47,0 @@ var grid4 = new contrib.grid({rows: 3, cols: 1})

@@ -7,3 +7,3 @@ var blessed = require('blessed')

var rows = 3, cols = 3
var grid = new contrib.Layout.Grid({rows: rows, cols: cols})
var grid = new contrib.grid({rows: rows, cols: cols})
for (var i=0; i<rows; i++) {

@@ -10,0 +10,0 @@ for (var j=0; j<cols; j++)

{
"name": "blessed-contrib",
"version": "0.0.3",
"version": "0.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

## blessed-contrib
A collection of [blessed](https://github.com/chjj/blessed) and [drawille](https://github.com/madbence/node-drawille) custom widgets and samples.
Build dashboards (or any other application) using ascii/ansi art and javascript.
Friendly to terminals, ssh and developers.
Friendly to terminals, ssh and developers. Extends [blessed](https://github.com/chjj/blessed) with custom [drawille](https://github.com/madbence/node-drawille) and other widgets.
**Contributors:**

@@ -26,3 +23,3 @@

npm install
node ./exampels/dashboard.js
node ./examples/dashboard.js

@@ -184,3 +181,3 @@ Tested on Linux and OS X. In order to use on windows need to install Braille fonts (not tested).

, label: 'Active Processes'
, columnSpacing: 16})
, columnSpacing: [16, 12, 12] /*or just 16*/})

@@ -191,3 +188,3 @@ //allow control the table with the keyboard

table.setData(
{ headers: ['col1', col2']
{ headers: ['col1', 'col2']
, data:

@@ -245,3 +242,3 @@ [ [1, 2]

npm install
node ./exampels/dashboard.js
node ./examples/dashboard.js

@@ -296,4 +293,6 @@ **Installation (for a custom dashbaord)**

## License
This library is under the [MIT License](http://opensource.org/licenses/MIT)
## More Information
Created by Yaron Naveh ([twitter](http://twitter.com/YaronNaveh), [blog](http://webservices20.blogspot.com/))

@@ -0,1 +1,2 @@

/*
var blessed = require('blessed')

@@ -60,2 +61,3 @@ , Node = blessed.Node

module.exports = Line
module.exports = Line
*/

@@ -43,4 +43,14 @@ var blessed = require('blessed')

var str = ""
d.forEach(function(r) {
var spaces = new Array(self.options.columnSpacing-r.toString().length).join(' ')
d.forEach(function(r, i) {
var colsize = self.options.columnSpacing;
if(typeof self.options.columnSpacing == "object") {
colsize = self.options.columnSpacing[i];
}
var spaceLength = colsize - r.toString().length
if (spaceLength < 0) {
spaceLength = 0;
}
var spaces = new Array(spaceLength).join(' ')
str += r + spaces

@@ -47,0 +57,0 @@ })

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