Repository navigation
v0.0.1 (Early Release)
First public release of the official HumanTone Node.js SDK.
Included
humanize()rewrites AI-generated text to sound humandetect()returns an AI likelihood score from 0 to 100account.get()returns plan, credit balance, and subscription statusHumanToneErrorclass withstatusCode,requestId,errorCode,retryable- Full TypeScript type definitions
- AbortSignal cancellation support
- Environment variable support:
HUMANTONE_API_KEY,HUMANTONE_BASE_URL - Zero runtime dependencies (native
fetch)
Requirements
Node.js 18 or later.
Install
npm install humantoneQuickstart
import HumanTone from 'humantone';
const client = new HumanTone({ apiKey: process.env.HUMANTONE_API_KEY });
const result = await client.humanize({
text: 'Your AI-generated text goes here. Must be at least 30 words.',
level: 'standard',
outputFormat: 'text',
});
console.log(result.text);