@gram-data/gram-preset-basic
v0.3.11
Published
Gram preset with sensible default processing
Downloads
14
Readme
gram-preset-basic
TODO: description
How to gram-preset-basic
Prepare a unified text processing engine:
const unified = require('unified');
const gramParserPlugin = require('@gram-data/gram-parse').gramParserPlugin;
const gramPresetBasic = require('@gram-data/gram-preset-basic');
const gramProcessor = unified()
.use(gramParserPlugin)
.use(gramPresetBasic);
Just parse:
const parsed = gramProcessor.parse(src);
Parse and apply plugins by calling runSync() on the processor:
const parsed = gramProcessor.runSync(gramProcessor.parse(src));