node-llama-cpp
v2.6.1 llama llama-cpp bindings ai cmake cmake-js prebuilt-binaries llm gguf and 12 more...
lint
npm run lint:eslint
test
npm run test:typescript && npm run lint:eslint
build
tsc --build tsconfig.json --force
clean
rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo
watch
tsc --build tsconfig.json --watch --force
format
npm run lint:eslint -- --fix
prepare
[ "$CI" = true ] || [ -d '.husky/_' ] || husky install
docs:dev
npm run docs:generateTypedoc && vitepress dev
prebuild
rimraf ./dist ./tsconfig.tsbuildinfo
prewatch
rimraf ./dist ./tsconfig.tsbuildinfo
dev:build
npm run build && node ./dist/cli/cli.js build
dev:setup
npm run build && node ./dist/cli/cli.js download && npm run docs:generateTypedoc
docs:build
npm run docs:generateTypedoc && vitepress build
lint:eslint
eslint --ext .js --ext .ts .
postinstall
node ./dist/cli/cli.js postinstall
docs:preview
npm run docs:generateTypedoc && vitepress preview
cmake-js-llama
cd llama && cmake-js
test:typescript
tsc --build tsconfig.json --dry --force
addPostinstallScript
npm pkg set scripts.postinstall="node ./dist/cli/cli.js postinstall"
docs:generateTypedoc
typedoc && rimraf ./docs/api/index.md ./docs/api/exports.md