{"id":24988,"library":"bearr","title":"Bearr","description":"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.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install bearr","lang":"bash","label":"npm"},{"cmd":"yarn add bearr","lang":"bash","label":"yarn"},{"cmd":"pnpm add bearr","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only, no CommonJS export.","wrong":"const bearr = require('bearr')","symbol":"bearr","correct":"import bearr from 'bearr'"},{"note":"Named export, not a subpath.","wrong":"import compile from 'bearr/compile'","symbol":"compile","correct":"import { compile } from 'bearr'"},{"note":"Named export; require will fail in ESM-only context.","wrong":"const run = require('bearr').run","symbol":"run","correct":"import { run } from 'bearr'"}],"quickstart":{"code":"import { compile } from 'bearr';\nimport { promises as fs } from 'fs';\n\nasync function main() {\n  const bearCode = `cetak(\"Halo Dunia\")`; // Indonesian code\n  const jsCode = compile(bearCode);\n  await fs.writeFile('output.js', jsCode);\n}\nmain().catch(console.error);","lang":"typescript","description":"Demonstrates compiling a simple Bear language script (print 'Halo Dunia') to JavaScript using the compile function."},"warnings":[{"fix":"Use ES module imports (import/export) instead of require.","message":"Version 2.0.0 removed CommonJS support; requires ESM environments.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Check changelog before upgrading; lock version in production.","message":"Bear language syntax is not stable; may change between minor versions.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Create a .d.ts file or use // @ts-ignore.","message":"No TypeScript types included; use with TypeScript may require custom declarations.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Switch to import syntax or use dynamic import().","cause":"Using CommonJS require() to load ESM-only package in version 2+.","error":"ERR_MODULE_NOT_FOUND: require() of ES Module"},{"fix":"Use compile() to transpile Bear code before execution.","cause":"Compiled JavaScript is run but bearr compile is not used.","error":"SyntaxError: Unexpected identifier 'cetak'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}