codemirror-node

Run CodeMirror on the server


License
ISC
Install
npm install codemirror-node@0.1.0

Documentation

Lets you run CodeMirror in Node.

Syntax:

const codemirror = require('codemirror');
const code = 'alert(1);';
const lang = 'javascript';

codemirror(code, lang);