customizing-code-frame
A small library for displaying code frames
Last updated a month ago by mikeludemann .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install customizing-code-frame 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (a month ago)

1 Versions

  • 1.0.0                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |