Compare commits
3 Commits
ci-dev
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dc5c7108e4 | ||
![]() |
c2a01f9b62 | ||
![]() |
e287652c25 |
30
README.md
30
README.md
@@ -1,25 +1,21 @@
|
||||
# toak
|
||||
it's no joke
|
||||
# code-tokenizer
|
||||
|
||||
|
||||
[](https://www.npmjs.com/package/toak)
|
||||

|
||||

|
||||
[](https://www.gnu.org/licenses/agpl-3.0.html)
|
||||
|
||||
## Overview
|
||||
|
||||
`toak` is an intentionally simple yet powerful tool that processes git repository files, cleans code, redacts sensitive information, and generates markdown documentation with token counts using the Llama 3 tokenizer.
|
||||
`toak` is a cli tool, named for phonetics, that processes git repository files, cleans code, redacts sensitive information, and generates a `prompt.md` with token counts using the Llama 3 tokenizer.
|
||||
|
||||
```shell
|
||||
$ cd your-git-repo
|
||||
$ npx toak
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
## Philosophy
|
||||
1. _Human-first_ technologies for a better future.
|
||||
2. If you don't like the name...good.
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
@@ -29,14 +25,10 @@ $ npx toak
|
||||
- Redacts sensitive information (API keys, tokens, JWT, hashes)
|
||||
- Counts tokens using llama3-tokenizer-js
|
||||
- Supports nested .toak-ignore files
|
||||
|
||||
### Token Cleaning
|
||||
- Removes single-line and multi-line comments
|
||||
- Strips console.log statements
|
||||
- Removes import statements
|
||||
- Cleans up whitespace and empty lines
|
||||
|
||||
### Security Features
|
||||
- Redacts API keys and secrets
|
||||
- Masks JWT tokens
|
||||
- Hides authorization tokens
|
||||
@@ -45,16 +37,8 @@ $ npx toak
|
||||
|
||||
## Requirements
|
||||
|
||||
- Node.js (>=14.0.0)
|
||||
- Git repository
|
||||
- Bun runtime (for development)
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install toak
|
||||
```
|
||||
|
||||
- npm/bun/yarn/pnpm
|
||||
|
||||
## Usage
|
||||
|
||||
### CLI
|
||||
|
@@ -64,7 +64,7 @@
|
||||
"bun-plugin-isolated-decl": "^0.1.10",
|
||||
"eslint": "^9.24.0",
|
||||
"globals": "^15.15.0",
|
||||
"oxc-transform": "^0.44.0",
|
||||
"oxc-transform": "^0.82.3",
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
|
Reference in New Issue
Block a user