Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyao27 committed May 13, 2024
1 parent bdd61a6 commit 7f54dcf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
# cli-high

✨ Tiny syntax highlighting for your terminal

[![NPM version](https://img.shields.io/npm/v/cli-high?color=a1b858&label=)](https://www.npmjs.com/package/cli-high)

## Preview

![cli-high](./screenshot.png)

## CLI Usage

```bash
npx cli-high ./path/to/your/js/file
```

## Programmatic Usage

```ts
import { highlight } from 'cli-high'

const highlighted = highlight('console.log("Hello, World!")')
```

## License

[MIT](./LICENSE) License © 2024 [xinyao27](https://github.com/xinyao27)
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
}
},
"sideEffects": false,
"bin": {
"highlight": "./bin/index.js"
},
"bin": "./bin/index.js",
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f54dcf

Please sign in to comment.