Skip to content

A small bun executable wrapper around guesslang and vscode-languagedetection. Used for autodetecting programming languages.

License

Notifications You must be signed in to change notification settings

CodeMyst/guesslang-bun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guesslang-bun

To install dependencies:

bun install

Copy the model.json and weights file from the vscode-languagedetection package:

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:

bun build index.ts --compile --outfile guesslang-bun --assets model.json group1-shard1of1.bin

To run the executable:

./guesslang-bun path-to-file

This project was created using bun init in bun v1.1.29. Bun is a fast all-in-one JavaScript runtime.

About

A small bun executable wrapper around guesslang and vscode-languagedetection. Used for autodetecting programming languages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published