UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

20 lines (16 loc) 457 B
export default buffer import compiler from './compile/html.mjs' import parser from './parse.mjs' import postprocess from './postprocess.mjs' import preprocessor from './preprocess.mjs' function buffer(value, encoding, options) { if (typeof encoding !== 'string') { options = encoding encoding = undefined } return compiler(options)( postprocess( parser(options).document().write(preprocessor()(value, encoding, true)) ) ) }