@devtea2026/consectetur-cumque-sed-modi v5.5.117
⨠What is @devtea2026/consectetur-cumque-sed-modi?
@devtea2026/consectetur-cumque-sed-modi
is library to convert json raw (array
) into xlsx file
ā”ļø Installation
using npm
npm install @devtea2026/consectetur-cumque-sed-modi
using yarn
yarn add @devtea2026/consectetur-cumque-sed-modi
using pnpm
pnpm add @devtea2026/consectetur-cumque-sed-modi
š Usage
Use to save as file:
const @devtea2026/consectetur-cumque-sed-modi = require('@devtea2026/consectetur-cumque-sed-modi');
const fs = require('fs');
const json = [
{
name: 'John',
age: 27,
job: 'Software Engineer',
},
];
const buffer = @devtea2026/consectetur-cumque-sed-modi(json);
fs.writeFileSync('example.xlsx', buffer, 'binary');
Or use as express middleware. It adds a convenience xlsx
method to the response object to immediately output an excel as download.
const express = require('express');
const @devtea2026/consectetur-cumque-sed-modi = require('@devtea2026/consectetur-cumque-sed-modi');
const app = express();
const PORT = 3000;
const data = [
{
name: 'John',
age: 27,
job: 'Software Engineer',
},
{
name: 'John',
age: 27,
job: 'Software Engineer',
},
];
app.use(@devtea2026/consectetur-cumque-sed-modi.middleware);
app.get('/', function (req, res) {
res.xlsx('example.xlsx', data);
});
app.listen(PORT, function (err) {
if (err) console.log(err);
console.log('Server listening on PORT', PORT);
});
š¤ Contributing
Anyone can contribute with issues and PRs. If you're submitting a pull request, always create a new branch to work your changes, and try squashing commits down if possible. Always test any new code and make sure npm test
passes and npm run test:cover
for code coverage is adequate before opening a PR.
Author
š¤ Arie Syukron
- Github: @syukronarie
Show your support
Please āļø this repository if this project helped you!
š License
Copyright Ā© 2022 Arie Syukron. This project is MIT licensed.
happy coding!
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago