customizing-code-frame
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

customizing-code-frame

A small library for displaying code frames

Usage

import { createCodeFrame } from 'customizing-code-frame';

const str = `foo\nbar\nbob`;

const codeFrame = createCodeFrame(str, 1, 2);

console.log(codeFrame);

// Logs:
//   1 | foo
// > 2 | bar
//     |  ^
//   3 | bob

License

MIT, see the license file.

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i customizing-code-frame

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.71 kB

    Total Files

    3

    Last publish

    Collaborators

    • mikeludemann