UNPKG

read-excel-file

Version:

Read small to medium `*.xlsx` files in a browser or Node.js. Parse to JSON with a strict schema.

11 lines (9 loc) 362 B
// Creates a `package.json` file in the CommonJS `build` folder. // That marks that whole folder as CommonJS so that Node.js doesn't complain // about `require()`-ing those files. import fs from 'fs' fs.writeFileSync('./commonjs/package.json', JSON.stringify({ name: 'read-excel-file/commonjs', type: 'commonjs', private: true }, null, 2), 'utf8')