1
Jev-Leftpad (github.com)
you are viewing a single comment's thread
view the rest of the comments
[-] artwork@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

Now that's a rare GitHub Username!

Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...

Related:
- https://en.wikipedia.org/wiki/Jev_(AI_model)
- https://typesafe.ai/

[-] kaageej@lemmy.world 3 points 1 month ago
[-] artwork@lemmy.world 2 points 1 month ago

I see! Thank you very much!

Holy smokes... I had no idea... Though, I still abhor the "AI" involved, the NPM package itself is a dear nonsense... There's dear String.padStart in the most of JavaScript engines!

[-] kaageej@lemmy.world 3 points 1 month ago

That feature wouldn't come to JavaScript for another couple of years if I recall correctly. There was a "legit" use case for leftpad... Crazy as it may be.

[-] artwork@lemmy.world 1 points 1 month ago

At this point, it must be related to the following case when some crucial functionality was missing, too:
- https://youmightnotneedjquery.com/

[-] whats_a_lemmy@midwest.social 1 points 1 month ago

This is definitely a bit:

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.

this post was submitted on 21 Sep 2026
1 points (100.0% liked)

Hacker News

5605 readers
487 users here now

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

founded 2 years ago
MODERATORS