1.0.5 • Published 7 months ago
deepcontext v1.0.5
DeepContext
Given OpenAI o-1 pro more context on your nextjs (or other typescript) project by logging out your file and automatically doing the same for your imports.
Usage
npx deepcontext <path> [depth]
Parameters
path
: Path to a file or directory to analyzedepth
(optional): How many levels deep to analyze imports. Defaults to 0 (surface-level imports only)
Examples
# Analyze a single file's direct imports
npx deepcontext pages/index.tsx
# Analyze a file with nested imports (depth of 2)
npx deepcontext pages/index.tsx 2
# Analyze all files in a directory
npx deepcontext src/
Requirements
- Node.js >= 18
Development
- Clone the repository:
git clone https://github.com/yourusername/deepcontext.git
cd deepcontext
- Install dependencies:
npm install
- Available scripts:
npm run build
- Build the projectnpm run dev
- Watch mode for developmentnpm run test
- Run testsnpm run typecheck
- Run TypeScript type checking
License
MIT