2.0.24 • Published 11 months ago

@node-novel/layout v2.0.24

Weekly downloads
26
License
ISC
Repository
github
Last release
11 months ago

README

node-novel core module

yarn add @node-novel/layout

demo

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,
});