npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@enzoxavier/jawascript

v1.1.0

Published

Gunakake JavaScript nganggo basa Jawa

Readme

@enzoxavier/jawascript

Gunakake JavaScript nganggo basa Jawa


Fungsi Array (Fungsi Saka Larik)

gabung – Nggabungake array

const arr1 = [1, 2, 3];
const arr2 = [4, 5, 6];
const hasil = arr1.gabung(arr2); // [1, 2, 3, 4, 5, 6]

goleki – Goleki indeks item

const arr = [10, 20, 30, 40];
const indeks = arr.goleki(30); // 2

indeksAkhir – Goleki saka mburi

const arr = [1, 2, 3, 2];
const indeks = arr.indeksAkhir(2); // 3

ngemot – Periksa item ana apa ora

arr.ngemot(40); // true

sabenIndex – ForEach versi Jawa

arr.sabenIndex((nilai, indeks) => {
  console.log(indeks, nilai);
});

reduksi – Reduce biasa

const jumlah = arr.reduksi((a, b) => a + b, 0);

reduksiMundur – Reduce saka mburi

const hasil = arr.reduksiMundur((a, b) => a + b);

golekIndeks – Temokake indeks sesuai kondisi

arr.golekIndeks(x => x > 25); // 2

Fungsi String (Fungsi Tali Teks)

tulisan – Ubah dadi string

const teks = tulisan(123); // "123"

lambahi – Ambil panjang string

'halo'.lambahi(); // 4

jodho – Gabung teks

'halo'.jodho(' dunia'); // 'halo dunia'

subteks – Ambil substring

'hello'.subteks(1, 3); // 'el'

goleki – Cari posisi teks

'halo dunia'.goleki('dunia'); // 5

golekiAkhir – Cari dari belakang

'halo dunia dunia'.golekiAkhir('dunia'); // 10

ngandhut – Apakah mengandung substring

'teks contoh'.ngandhut('contoh'); // true

diwiwi – Dimulai dengan

'teks'.diwiwi('te'); // true

pungkasi – Diakhiri dengan

'contoh.js'.pungkasi('.js'); // true

hurufGedhe – Ubah ke huruf gedhe

'halo'.hurufGedhe(); // 'HALO'

hurufCilik – Ubah ke huruf cilik

'HALO'.hurufCilik(); // 'halo'

resikiAwal – Trim awal

'   teks'.resikiAwal(); // 'teks'

resikiAkhir – Trim akhir

'teks   '.resikiAkhir(); // 'teks'

ganti – Ganti teks pisanan

'halo dunia'.ganti('dunia', 'jagat'); // 'halo jagat'

gantiKabeh – Ganti kabeh match

'halo halo'.gantiKabeh(/halo/g, 'hi'); // 'hi hi'

karakter – Ambil karakter

'teks'.karakter(2); // 'k'

kodeKarakter – ASCII kode karakter

'A'.kodeKarakter(0); // 65

bandhingTeks – Bandingake string

'abc'.bandhingTeks('abd'); // -1

tampilna – Podo koyo console.log

async function prosesData() {
  try {
    tampilna.rek('Proses dimulai!');
    const data = await tulis('Masukkan sesuatu rek: ');
    if (data === '') {
      throw new Error('Input kosong, rek!');
    }
    tampilna.rek(`Data: ${data}`);
  } catch (error) {
    tampilna.kliru(`Kliru rek! ${error}`);
  } finally {
    tampilna.elingo('Proses selesai rek, elingo ojo lali!');
  }
}

prosesData();

werna – Warna dasar chalk

tampilna.rek(werna.abang.kandel('Hidup jawa')); // Sama seperti chalk.red.bold

Tujuan Proyek

Proyek iki digawe kanggo ndhukung JavaScript nganggo basa Jawa, supaya sinau coding luwih nyenengake lan luwih deket karo budaya lokal.


Instalasi

npm install @enzoxavier/jawascript

Conto Lain

Cek Channel kulo kanggo deleng contoh rek.


Kontribusi

Pengin mbantu? Monggo kontribusi liwat GitHub utawa hubungi:


Lisensi

Lisensi: MIT
Digawe nganggo ati ing Indonesia.