Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
jest-spreadsheet-loader
Advanced tools
Imports and parses xlsx files for usage with the xlsx npm module.
For webpack usage, see the webpack xlsx npm module.
npm install --save-dev jest-xlsx-loader
Add this to your package.json
. Note: babel-jest
is only required if
you want to continue transpiling js with babel.
"jest": {
"transform": {
"\\.jsx?$": "babel-jest",
"\\.xlsx$": "jest-xlsx-loader"
}
}
You can then directly import and use xlsx
to manipulate your excel spreadsheet
(if you need more complicated functionality).
import spreadsheet from './spreadsheet.xlsx'
import xlsx from 'xlsx'
test('that spreadsheet correctly imported', () => {
expect(spreadsheet.SheetNames).toEqual(jasmine.arrayContaining([jasmine.any(String)]))
const csvString = xlsx.utils.sheet_to_csv(spreadsheet.Sheets['Sheet1'])
})
MIT © Severin Ibarluzea
FAQs
Jest transformer to parse xlsx files
The npm package jest-spreadsheet-loader receives a total of 204 weekly downloads. As such, jest-spreadsheet-loader popularity was classified as not popular.
We found that jest-spreadsheet-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.