tablemark
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0
10
index.js
@@ -1,2 +0,4 @@ | ||
const { EOL } = require('os') | ||
'use strict' | ||
const os = require('os') | ||
const isPlainObject = require('is-plain-obj') | ||
@@ -45,3 +47,3 @@ | ||
table += titles.join(' | ') | ||
table += EOL | ||
table += os.EOL | ||
@@ -53,3 +55,3 @@ // header separator | ||
}).join(' | ') | ||
table += EOL | ||
table += os.EOL | ||
@@ -62,3 +64,3 @@ // table body | ||
return String(v) | ||
}).join(' | ') + EOL | ||
}).join(' | ') + os.EOL | ||
}) | ||
@@ -65,0 +67,0 @@ |
{ | ||
"name": "tablemark", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0", | ||
"description": "Generate markdown tables from JSON data.", | ||
"author": { | ||
"name": "Bo Lingen", | ||
"email": "lingenbw@gmail.com", | ||
"url": "github.com/citycide" | ||
}, | ||
"license": "MIT", | ||
"repository": "citycide/tablemark", | ||
"scripts": { | ||
"test": "ava", | ||
"test:watch": "ava -w" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/citycide/tablemark.git" | ||
}, | ||
"homepage": "https://github.com/citycide/tablemark", | ||
"bugs": "https://github.com/citycide/tablemark/issues", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"keywords": [ | ||
@@ -21,4 +30,5 @@ "markdown", | ||
], | ||
"engines": { | ||
"node": ">=4" | ||
"scripts": { | ||
"test": "ava", | ||
"test:watch": "ava -w" | ||
}, | ||
@@ -29,9 +39,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"ava": "^0.17.0", | ||
"eslint": "^3.13.1", | ||
"eslint-config-standard": "^6.2.1", | ||
"eslint-plugin-prefer-let": "^0.1.0", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-standard": "^2.0.1" | ||
"ava": "^0.20.0", | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.2" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# tablemark [![Version](https://img.shields.io/npm/v/tablemark.svg?style=flat-square)](https://www.npmjs.com/package/tablemark) [![License](https://img.shields.io/npm/l/tablemark.svg?style=flat-square)](https://www.npmjs.com/package/tablemark) [![Travis CI](https://img.shields.io/travis/citycide/tablemark.svg?style=flat-square)](https://travis-ci.org/citycide/tablemark) [![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com) | ||
# tablemark · [![Version](https://img.shields.io/npm/v/tablemark.svg?style=flat-square&maxAge=3600)](https://www.npmjs.com/package/tablemark) [![License](https://img.shields.io/npm/l/tablemark.svg?style=flat-square&maxAge=3600)](https://www.npmjs.com/package/tablemark) [![Travis CI](https://img.shields.io/travis/citycide/tablemark.svg?style=flat-square&maxAge=3600)](https://travis-ci.org/citycide/tablemark) [![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square&maxAge=3600)](https://standardjs.com) | ||
@@ -27,7 +27,7 @@ > Generate markdown tables from JSON data. | ||
// 'name | age | isCool' | ||
// '----- | ----- | -----' | ||
// 'Bob | 21 | false' | ||
// 'Sarah | 22 | true' | ||
// 'Lee | 23 | true' | ||
// name | age | isCool | ||
// ----- | ----- | ----- | ||
// Bob | 21 | false | ||
// Sarah | 22 | true | ||
// Lee | 23 | true | ||
``` | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6019
3
54
1
0
0