Gridjs-spreadsheet package doesn't work

this npm package shows an example that does not work. It seems the package code contains commonjs modules which throws error in browser. Additionally, it seems the package doesn’t export x_spreadsheet, not sure how an import could work without that as in the example.

from the package readme.md

import Spreadsheet from “gridjs-spreadsheet”;
// If you need to override the default options, you can set the override
// const options = {};
// new Spreadsheet(‘#x-spreadsheet-demo’, options);
const s = new Spreadsheet(“#x-spreadsheet-demo”)
.loadData({}) // load data
.change(data => {
// save data to db
});

// data validation
s.validate()

I’ve updated the npm patch and readme to include the other require lib.
and also delete the npm section.
please use it just as client side script only through cdn way.