Registry / web-framework / onelang-ide

onelang-ide

JSON →
library0.0.2jsnpmunverified

Web-based IDE for the OneLang transpiler (onelang.io). Current stable version: 0.0.2. Release cadence is early/experimental — no regular schedule yet. It provides a browser-based editing and transpilation environment for OneLang, a source-to-source transpiler that targets multiple languages. Key differentiators: focused specifically on OneLang workflow, integrates transpilation preview and multi-language output. Not yet production-ready; likely experimental and unstable.

npm install onelang-ide
INSTALL
IMPORT
SIG · ONELANG-IDE
O
onelang-ide
web-frameworkjavascriptv0.0.2
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.

IDE
import { IDE } from 'onelang-ide'
import IDE from 'onelang-ide'
Named export, not default.
runCode
import { runCode } from 'onelang-ide'
const { runCode } = require('onelang-ide')
Package is likely ESM-only; CommonJS require may not work.
TranspilerOptions
import type { TranspilerOptions } from 'onelang-ide'
import { TranspilerOptions } from 'onelang-ide'
Type-only import preferred with TypeScript.

Creates a OneLang IDE instance, transpiles a simple print statement to JavaScript, and logs the output.

import { IDE } from 'onelang-ide'; const ide = new IDE(); const code = 'print("Hello World");'; const result = ide.transpile(code, { target: 'javascript' }); console.log(result);
Debug
Known issues
breakingPackage version 0.0.2 is an early release and APIs may change without notice. Not recommended for production use.
fix
Pin to a specific version or wait for stable release.
affects: >=0.0.0
gotchaThe package is experimental; no binary or CLI provided. Works only in browser environments (no Node.js runtime).
fix
Use in a web application with bundler (Webpack, Vite) — not in Node scripts.
affects: >=0.0.0
deprecatedThe transpile method currently takes only one target language per call; multi-target output is not yet supported.
fix
Call transpile separately for each target language.
affects: 0.0.2
Errors
Common errors & fixes
Error: Cannot find module 'onelang-ide'
Package not installed or not found in node_modules.
fix
Run `npm install onelang-ide` in your project directory.
TypeError: ide.transpile is not a function
IDE instance not created correctly or import wrong.
fix
Ensure you use `import { IDE } from 'onelang-ide'` and then `new IDE()`.
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
onelang-ide — npm install onelang-ide · libregistry