Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tabulate

Turn a text area in to table cells, replacing § for .

Created as my first NPM module, I've needed to create this when building static sites through Wintersmith, as when inserting content for multiple products with different specifications, instead of creating multiple tables for each, use one string to make custom tables, fully customisable.

Install

$ npm install tabulate --save

Usage

const tabulate = require('tabulate');
const rows = 'First§row\nsecond§row';
console.log(tabulate(rows));
//=> '<tr><td>First</td><td>row</td></tr><tr><td>second</td><td>row</td></tr>'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages