Registry / devops / bearr
library2.0.0jsnpmunverified

Bearr (v2.0.0) is a transpiler that converts a custom Indonesian-based language (Bear language) into JavaScript, along with a CLI for compilation. It targets Indonesian-speaking developers who want to write code in Bahasa Indonesia. The transpiler outputs standard JS, enabling use in any JS environment. Differentiators include full Indonesian syntax support and CLI-first design. No release cadence is known; this is a niche tool with limited ecosystem adoption.

npm install bearr
INSTALL
IMPORT
SIG · BEARR
B
bearr
devopsjavascriptv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bearr
import bearr from 'bearr'
const bearr = require('bearr')
Package is ESM-only, no CommonJS export.
compile
import { compile } from 'bearr'
import compile from 'bearr/compile'
Named export, not a subpath.
run
import { run } from 'bearr'
const run = require('bearr').run
Named export; require will fail in ESM-only context.

Demonstrates compiling a simple Bear language script (print 'Halo Dunia') to JavaScript using the compile function.

import { compile } from 'bearr'; import { promises as fs } from 'fs'; async function main() { const bearCode = `cetak("Halo Dunia")`; // Indonesian code const jsCode = compile(bearCode); await fs.writeFile('output.js', jsCode); } main().catch(console.error);
bearr --version
Debug
Known issues
breakingVersion 2.0.0 removed CommonJS support; requires ESM environments.
fix
Use ES module imports (import/export) instead of require.
affects: >=2.0.0
gotchaBear language syntax is not stable; may change between minor versions.
fix
Check changelog before upgrading; lock version in production.
affects: >=1.0.0
gotchaNo TypeScript types included; use with TypeScript may require custom declarations.
fix
Create a .d.ts file or use // @ts-ignore.
affects: >=0.0.0
Errors
Common errors & fixes
ERR_MODULE_NOT_FOUND: require() of ES Module
Using CommonJS require() to load ESM-only package in version 2+.
fix
Switch to import syntax or use dynamic import().
SyntaxError: Unexpected identifier 'cetak'
Compiled JavaScript is run but bearr compile is not used.
fix
Use compile() to transpile Bear code before execution.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Resources
bearr — npm install bearr · libregistry