Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codeindex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
codeindex — npx wrapper
Run codeindex without installing Go:
npx codeindex init
npx codeindex serve
npx codeindex reindex
npx codeindex statusHow it works
On first run the wrapper downloads the pre-built Go binary for your
platform from the GitHub releases page and caches it in
node_modules/codeindex/.bin/. Subsequent invocations skip the download
and execute the cached binary directly.
Supported platforms:
| OS | Architectures |
|---|---|
| macOS | arm64, amd64 (x64) |
| Linux | arm64, amd64 (x64) |
| Windows | arm64, amd64 (x64) |
Prerequisites
codeindex requires ast-grep
to be installed and available in your PATH:
# macOS
brew install ast-grep
# Cargo
cargo install ast-grep --locked
# npm
npm install -g @ast-grep/cliCached binary location
<npx cache>/codeindex/node_modules/codeindex/.bin/codeindexThe binary is tied to the package version. Upgrading the package version will download a fresh binary.
Manual install (alternative)
go install github.com/01x-in/codeindex/cmd/codeindex@latest