https://github.com/codemyst/guesslang-bun
A small bun executable wrapper around guesslang and vscode-languagedetection. Used for autodetecting programming languages.
https://github.com/codemyst/guesslang-bun
Last synced: 6 months ago
JSON representation
A small bun executable wrapper around guesslang and vscode-languagedetection. Used for autodetecting programming languages.
- Host: GitHub
- URL: https://github.com/codemyst/guesslang-bun
- Owner: CodeMyst
- License: mit
- Created: 2024-09-23T19:57:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-02T18:19:13.000Z (12 months ago)
- Last Synced: 2025-03-13T05:31:59.985Z (12 months ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guesslang-bun
To install dependencies:
```bash
bun install
```
Copy the model.json and weights file from the vscode-languagedetection package:
```bash
cp node_modules/@vscode/vscode-languagedetection/model/model.json .
cp node_modules/@vscode/vscode-languagedetection/model/group1-shard1of1.bin .
```
To build as a standalone executable:
```bash
bun build index.ts --compile --outfile guesslang-bun --assets model.json group1-shard1of1.bin
```
To run the executable:
```bash
./guesslang-bun path-to-file
```
This project was created using `bun init` in bun v1.1.29. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.