3 Commits

Author SHA1 Message Date
dependabot[bot]
7e838082ad Bump bun-plugin-isolated-decl from 0.1.10 to 0.2.8
Bumps [bun-plugin-isolated-decl](https://github.com/ryoppippi/bun-plugin-isolated-decl) from 0.1.10 to 0.2.8.
- [Release notes](https://github.com/ryoppippi/bun-plugin-isolated-decl/releases)
- [Commits](https://github.com/ryoppippi/bun-plugin-isolated-decl/compare/v0.1.10...v0.2.8)

---
updated-dependencies:
- dependency-name: bun-plugin-isolated-decl
  dependency-version: 0.2.8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 01:37:03 +00:00
Geoff Seemueller
c2a01f9b62 Update README.md
spelling error

Signed-off-by: Geoff Seemueller <28698553+geoffsee@users.noreply.github.com>
2025-07-20 18:51:05 -04:00
Geoff Seemueller
e287652c25 Update README.md
Signed-off-by: Geoff Seemueller <28698553+geoffsee@users.noreply.github.com>
2025-07-20 18:49:04 -04:00
2 changed files with 8 additions and 24 deletions

View File

@@ -1,25 +1,21 @@
# toak
it's no joke
# code-tokenizer
[![npm version](https://img.shields.io/npm/v/toak)](https://www.npmjs.com/package/toak)
![Tests](https://github.com/seemueller-io/toak/actions/workflows/tests.yml/badge.svg)
![Tests](https://github.com/seemueller-io/code-tokenizer/actions/workflows/tests.yml/badge.svg)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](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
```
![toak](https://github.com/seemueller-io/toak/blob/471c2a359e342c0103d2074650afe1f1b2b5f71d/toak.jpg?raw=true)
![toak](https://github.com/seemueller-io/code-tokenizer/blob/471c2a359e342c0103d2074650afe1f1b2b5f71d/toak.jpg?raw=true)
## 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,15 +37,7 @@ $ npx toak
## Requirements
- Node.js (>=14.0.0)
- Git repository
- Bun runtime (for development)
## Installation
```bash
npm install toak
```
- npm/bun/yarn/pnpm
## Usage

View File

@@ -61,7 +61,7 @@
"@types/micromatch": "^4.0.9",
"@types/node": "^22.14.0",
"bun": "latest",
"bun-plugin-isolated-decl": "^0.1.10",
"bun-plugin-isolated-decl": "^0.2.8",
"eslint": "^9.24.0",
"globals": "^15.15.0",
"oxc-transform": "^0.44.0",