{"id":25192,"library":"edu-role-play","title":"edu-role-play","description":"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.","status":"active","version":"0.1.26","language":"javascript","source_language":"en","source_url":"https://github.com/minicoursegenerator/edu-role-play","tags":["javascript","edu-role-play","role-play","education","agent-skills","cli"],"install":[{"cmd":"npm install edu-role-play","lang":"bash","label":"npm"},{"cmd":"yarn add edu-role-play","lang":"bash","label":"yarn"},{"cmd":"pnpm add edu-role-play","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; CommonJS require will fail.","wrong":"const eduRolePlay = require('edu-role-play')","symbol":"default","correct":"import eduRolePlay from 'edu-role-play'"},{"note":"Named export from main entry; no subpath exports.","wrong":"import init from 'edu-role-play/init'","symbol":"init","correct":"import { init } from 'edu-role-play'"},{"note":"Named export; CommonJS require not supported.","wrong":"const { lint } = require('edu-role-play')","symbol":"lint","correct":"import { lint } from 'edu-role-play'"}],"quickstart":{"code":"import eduRolePlay from 'edu-role-play';\n\nasync function main() {\n  try {\n    await eduRolePlay.init();\n    console.log('Project initialized.');\n  } catch (err) {\n    console.error('Failed:', err.message);\n  }\n}\n\nmain();","lang":"javascript","description":"Initialize a new edu-role-play project using the default import."},"warnings":[{"fix":"Use import syntax instead of require().","message":"Package is ESM-only. Using CommonJS require() will throw an error.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Add a declaration file leaf or set skipLibCheck: true in tsconfig.","message":"No exported types; TypeScript users must declare module or use skipLibCheck.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Pin to exact version and test before upgrading.","message":"CLI commands may change in future versions; API not stable.","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure your project uses ES modules (\"type\": \"module\" in package.json) and import instead of require().","cause":"Using CommonJS with ESM-only package.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Use named import: import { init } from 'edu-role-play'.","cause":"Default import used but package exports a named function.","error":"TypeError: eduRolePlay.init is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}