From d94239bad26f2e62f9305a2195174e16352ef637 Mon Sep 17 00:00:00 2001 From: dpilafian Date: Sat, 26 Mar 2022 16:49:13 -0700 Subject: [PATCH] Clearer documentation for parameters --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f194d9b..651d4b8 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ import { prettyPrintJson } from 'pretty-print-json'; ``` Or for older CommonJS/UMD environments: ```javascript -const { prettyPrintJson } = require('pretty-print-json'); //deprecated +const { prettyPrintJson } = require('pretty-print-json'); //deprecated -- use ES modules instead ``` ## 3) Usage @@ -52,7 +52,7 @@ const html = prettyPrintJson.toHtml(data, options?);

 ```
 ##### JavaScript:
-Pass data into `prettyPrintJson.toHtml()` and display the results.
+Pass data into `prettyPrintJson.toHtml(data, options)` and display the results.
 ```javascript
 const data = { active: true, mode: '🚃', codes: [48348, 28923, 39080], city: 'London' };
 const elem = document.getElementById('account');