diff --git a/README.md b/README.md index d31dfac..79dcc5b 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,14 @@ const canvas = renderTable({ saveImage(canvas, path.join(__dirname, 'example.png')); ``` +## CommonJS +```javascript +const path = require('path'); +const TableRenderer = require('table-renderer'); +const {saveImage} = TableRenderer; +const renderTable = TableRenderer.default().render; +``` + ![single table](example.png) ## API