cd /news/ai-tools/jev-leftpad · home topics ai-tools article
[ARTICLE · art-135727] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Jev-Leftpad

A developer published jev-leftpad, an npm package that left-pads a string by calling the jev-latest model through TypeSafe's @typesafe-ai/sdk instead of JavaScript's built-in padStart(). The package requires Node.js 20 or newer and a TYPESAFE_API_KEY, issues one TypeSafe API request per call with retries disabled, and can add only 0 to 10 spaces because Jev is given criteria named space_0 through space_10; the author states it costs more than padStart() and warns against using it in production. The tests mock Jev, need no API key, and spend no TypeSafe credits, and the project is MIT licensed.

read1 min views1 publishedSep 21, 2026
Jev-Leftpad
Image: Michielbdejong (auto-discovered)

Left pad a value with Jev.

Could this be one line with padStart()? Yes. Does it need a model call? No. Anyway:

npm install jev-leftpad
python
import leftPad from 'jev-leftpad';

const result = await leftPad('jev', 8);

console.log(JSON.stringify(result));
// "     jev" (probably)

Set TYPESAFE_API_KEY before using it. jev-leftpad uses jev-latest through TypeSafe's native @typesafe-ai/sdk. It requires Node.js 20 or newer.

await leftPad(value, targetLength)

targetLength must be a non-negative safe integer.

Jev gets one Choice with criteria named space_0, space_1, space_2, and so on, written directly up to space_10. For the example above, it should choose space_5. JavaScript reads the number, creates five spaces, and puts the value after them.

This means the package can add between 0 and 10 spaces. If more than 10 spaces are needed, Jev has no correct option. Which feels appropriate for this project.

There is one TypeSafe API request per call and retries are disabled. The request can fail, Jev can choose the wrong option, and it costs more than padStart(). Please don't use this in production. Or anything important.

npm install
npm test

The tests mock Jev. They don't need an API key and don't spend any TypeSafe credits.

MIT

── more in #ai-tools 4 stories · sorted by recency
── more on @jev-leftpad 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/jev-leftpad] indexed:0 read:1min 2026-09-21 ·