@node-novel/layout
Version:
node-novel core module
27 lines (17 loc) • 407 B
Markdown
> node-novel core module
`yarn add @node-novel/layout`
* [node-novel](https://www.npmjs.com/search?q=node-novel)
```ts
import textLayout from '@node-novel/layout';
let old_text = '';
let options: ITextLayoutOptions = {
allow_lf2: false,
allow_lf3: false,
};
let new_text = textLayout.textlayout(old_text, options);
new_text = textLayout.replace(new_text, {
words: true,
});
```