This commit is contained in:
kacper 2026-03-06 22:51:19 -05:00
parent 6acf267d48
commit b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions

31
frontend/node_modules/simple-code-frame/README.md generated vendored Normal file
View file

@ -0,0 +1,31 @@
# simple-code-frame
Tiny library for displaying code frames. The main difference to `@babel/code-frame` is that this library doesn't ship with a parser. It is soley aimed at taking text input and adding column + line markers.
## Usage
```bash
npm install simple-code-frame
# or via yarn
yarn add simple-code-frame
```
Usage
```js
import { createCodeFrame } from 'simple-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).