x/sheetjs/demos/angular2/nscript.sh
1234567891011#!/bin/bashif [ ! -e SheetJSNS ]; then ns create SheetJSNS --ng cd SheetJSNS npm install xlsx cd ..fi<../../dist/xlsx.full.min.js sed 's/require("fs")/null/g' > SheetJSNS/src/app/xlsx.full.min.jscp nscript.ts SheetJSNS/src/app/app.component.ts