indented-code-block

1.1.1 • Public • Published

Indented code block

Get code block based on indents.

div
    | yep

div
    | nope
var source = fs.readFileSync('./test/fixtures/doc.jade', 'utf8');
var byLine = require('../index').byLine;
byLine(source, 1); // div yep
byLine(source, 3); // div nope

/indented-code-block/

    Package Sidebar

    Install

    npm i indented-code-block

    Weekly Downloads

    94

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    6.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • aratramba