Nuclear Powered Mushroom

    get-html-rows-cells

    2.0.0 • Public • Published

    get-html-rows-cells

    Simple nodejs function for generating divs with cells as HTML with data-cell-id and data-row-id set.

    Install

    npm install --save get-html-rows-cells

    Code

    See index.js

    Usage

    var getRowsCells = require('get-html-rows-cells');
    console.log(getRowsCells(1, 2); // One row and two cells
    // => <div class="row" data-id="0"><span class="cell" data-row-id="0" data-cell-id="0"></span><span class="cell" data-row-id="0" data-cell-id="1"></span></div>
    

    See test.js

    Usage example:

    MIT © Dennis Iversen

    Install

    npm i get-html-rows-cells

    DownloadsWeekly Downloads

    8

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • diversen