https://github.com/diversen/markdown-table-template
tiny js lib for creating markdown table templates from number of rows and columns.
https://github.com/diversen/markdown-table-template
Last synced: about 1 year ago
JSON representation
tiny js lib for creating markdown table templates from number of rows and columns.
- Host: GitHub
- URL: https://github.com/diversen/markdown-table-template
- Owner: diversen
- Created: 2016-02-04T17:16:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T11:00:30.000Z (over 10 years ago)
- Last Synced: 2025-06-08T21:36:39.806Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Readme
tiny js lib for creating markdown table templates from number of rows and columns.
example:
Node-like systems:
var mdtable = require("markdown-table-template");
Browser:
//
console.log(mdtable.create(0,0)); // nothing
console.log(mdtable.create(1,1)); // 1 row and 1 col
console.log(mdtable.create(3,7)); // 3 rows and 7 cols
yields:
|0:0|
|0:0|0:1|0:2|
|---|---|---|
|2:0|2:1|2:2|
|3:0|3:1|3:2|
|4:0|4:1|4:2|
|5:0|5:1|5:2|
|6:0|6:1|6:2|
|7:0|7:1|7:2|