Bear Language

raw JSON →
1.0.0 verified Fri May 01 auth: no javascript

Bear Language is a JavaScript transpiler that allows writing code in a simplified Indonesian syntax (Bahasa Rasa Indonesia). Currently at version 1.0.0, it provides both a library and CLI to transpile 'bear' code into standard JavaScript. Key differentiators: targets Indonesian-speaking developers, minimal feature set (likely experimental), with no recent updates (release date unknown).

error Cannot find module 'bear-language'
cause Package not installed or incorrectly imported.
fix
Run 'npm install bear-language' and use 'import bear from 'bear-language''.
gotcha Package is very early (v1.0.0) with likely no documentation; syntax may change without notice.
fix Refer to source code or examples; expect instability.
npm install bear-language
yarn add bear-language
pnpm add bear-language

Transpile a simple Bear Language function to JavaScript using the default export.

import bear from 'bear-language';

const bearCode = `
kata fungsi sapa(nama) {
    kembalikan "Halo " + nama
}

cetak(sapa("Dunia"))
`;

const jsCode = bear(bearCode);
console.log(jsCode);
// Output: function sapa(nama) { return "Halo " + nama; } console.log(sapa("Dunia"));