https://github.com/mikeludemann/customizing-code-frame
A small library for displaying code frames
https://github.com/mikeludemann/customizing-code-frame
code customization frame
Last synced: 3 months ago
JSON representation
A small library for displaying code frames
- Host: GitHub
- URL: https://github.com/mikeludemann/customizing-code-frame
- Owner: mikeludemann
- License: mit
- Created: 2020-07-12T13:41:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:18:32.000Z (over 2 years ago)
- Last Synced: 2025-03-07T06:49:52.538Z (4 months ago)
- Topics: code, customization, frame
- Language: TypeScript
- Homepage:
- Size: 1000 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# customizing-code-frame
A small library for displaying code frames
Usage
```js
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](./LICENSE).