It's a mini editable, customizable playground for web
MIT License
This is minibed! - mini editable, customizable playground for web
Documentation and examples are here: http://ned.im/minibed
Logo created by Karthik Srinivas from the Noun Project
import Minibed from 'minibed';
new Minibed({
theme: 'dark',
editorTheme: 'minibed-dark',
files: {
html: ['mini.html', 'bed.html'],
js: ['mini.js', 'mini.es6'],
css: ['mini.css', 'mini.scss', 'mini.less']
},
external: {
js: [],
css: []
},
settings: {
readOnly: false, // true, nocursor, false
scrollLock: false,
lineWrapping: true,
lineNumbers: true,
tabSize: 2,
css: {
base: 'none', // normalize, reset
}
},
notes: [] // array of strings, like footer notes, they are gonna be paragraphs
}).show();
$ npm run dev
$ npm test
$ npm run build