Skip to content

Commit 858e8a5

Browse files
committed
Pre-release.
0 parents  commit 858e8a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2006
-0
lines changed

Diff for: .babelrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"stage": 0,
3+
"plugins": [
4+
"lodash"
5+
]
6+
}

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/bower_components
2+
/node_modules
3+
/sandbox
4+
.npmrc
5+
npm-debug.log

Diff for: .travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- '0.12'
4+
- '0.11'
5+
- '0.10'
6+
install:
7+
- npm install
8+
notifications:
9+
email: false

Diff for: LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2015, Gajus Kuizinas (http://gajus.com/)
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the Gajus Kuizinas (http://gajus.com/) nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL ANUARY BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Diff for: README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Table
2+
3+
[![NPM version](http://img.shields.io/npm/v/table.svg?style=flat)](https://www.npmjs.com/package/table)
4+
[![js-canonical-style](https://img.shields.io/badge/code%20style-canonical-brightgreen.svg?style=flat)](https://github.com/gajus/canonical)
5+
6+
(This library is work in progress. The working library will be released in 2.0.0.)
7+
8+
Formats data into a string table.
9+
10+
* Works with strings containing [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) characters.
11+
* Works with strings containing [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code).
12+
* Supports `minWidth`, `maxWidth` properties per column.
13+
* Supports expanding long cell values into multiple rows.
14+
15+
## Usage
16+
17+
### Basic Table
18+
19+
Table data is described using an array of arrays.
20+
21+
```js
22+
let table = require('table'),
23+
data;
24+
25+
data = [
26+
['0A', '0B', '0C'],
27+
['1A', '1B', '1C'],
28+
['2A', '2B', '2C']
29+
];
30+
31+
console.log(table(data));
32+
```

Diff for: dist/align.js

+89
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/align.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/border.js

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/border.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/calculateMaximumColumnValueIndex.js

+57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/calculateMaximumColumnValueIndex.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/drawBorder.js

+117
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)