Registry / llm-agents / edu-role-play

edu-role-play

JSON →
library0.1.26jsnpmunverified

A CLI tool for educational role-play scenarios: init, preview, lint, bundle. Current stable version 0.1.26. Low release cadence (few updates). Differentiator: integrates agent-skills for educational role-play generation. Minimal documentation.

npm install edu-role-play
INSTALL
IMPORT
SIG · EDU-ROLE-PLAY
E
edu-role-play
llm-agentsjavascriptv0.1.26
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.

default
import eduRolePlay from 'edu-role-play'
const eduRolePlay = require('edu-role-play')
ESM-only package; CommonJS require will fail.
init
import { init } from 'edu-role-play'
import init from 'edu-role-play/init'
Named export from main entry; no subpath exports.
lint
import { lint } from 'edu-role-play'
const { lint } = require('edu-role-play')
Named export; CommonJS require not supported.

Initialize a new edu-role-play project using the default import.

import eduRolePlay from 'edu-role-play'; async function main() { try { await eduRolePlay.init(); console.log('Project initialized.'); } catch (err) { console.error('Failed:', err.message); } } main();
edu-role-play --version
Debug
Known issues
breakingPackage is ESM-only. Using CommonJS require() will throw an error.
fix
Use import syntax instead of require().
affects: >=0.1.0
gotchaNo exported types; TypeScript users must declare module or use skipLibCheck.
fix
Add a declaration file leaf or set skipLibCheck: true in tsconfig.
affects: >=0.1.0
deprecatedCLI commands may change in future versions; API not stable.
fix
Pin to exact version and test before upgrading.
affects: >=0.1.0
Errors
Common errors & fixes
SyntaxError: Unexpected token 'export'
Using CommonJS with ESM-only package.
fix
Ensure your project uses ES modules ("type": "module" in package.json) and import instead of require().
TypeError: eduRolePlay.init is not a function
Default import used but package exports a named function.
fix
Use named import: import { init } from 'edu-role-play'.
Upgrade
Version history
0.1.26latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
edu-role-play — npm install edu-role-play · libregistry