Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:18:32.000Z (about 2 years ago)
- Last Synced: 2024-11-16T02:22:03.580Z (2 months ago)
- Topics: code, customization, frame
- Language: TypeScript
- Homepage:
- Size: 1000 KB
- Stars: 0
- Watchers: 1
- 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).