@memochou1993/json2markdown
v0.0.3
Published
A simple JSON to Markdown converter that transforms JSON data into easily readable text.
Downloads
91
Readme
json2markdown
A simple JSON to Markdown converter that transforms JSON data into easily readable text.
Usage
Using with ES Modules
Import the converter and use it in your code:
import { Converter } from '@memochou1993/json2markdown';
const markdown = Converter.toMarkdown({
'Hello, World!': 'It works!',
});
// Output:
// # Hello, World!\n\nIt works!\n\n
Using with UMD Modules
Include the UMD script in your HTML file and use it:
const markdown = window.JSON2MD.Converter.toMarkdown({
'Hello, World!': 'It works!',
});
// Output:
// # Hello, World!\n\nIt works!\n\n
Development
To start a local development server, run:
npm run dev
Testing
To run the tests for this package, run:
npm run test