0.0.3 • Published 10 months ago

@memochou1993/json2markdown v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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
0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

11 months ago