@mavenagi/knowledge-converter
v1.0.20
Published
This library can be used to convert a variety of file formats to MavenAGI-compatible documents
Downloads
357
Readme
@mavenagi/knowledge-converter
This library can be used to convert a variety of file formats to MavenAGI-compatible documents.
Installation
npm install @mavenagi/knowledge-converter
Usage
The library has a single async method convert()
which takes binary or string data, and returns a title, if exists, and the content converted to markdown:
import { convert } from '@mavenagi/knowledge-converter';
const [ title, content ] = await convert({
data: '<html><body>Hello world!</body></html>'
});
Development
npm install // install dependencies
npm run build // build the library
npm run test // run tests