1.0.0 • Published 1 year ago

@crabas0npm/vel-eligendi-accusamus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

✨ What is @crabas0npm/vel-eligendi-accusamus?

@crabas0npm/vel-eligendi-accusamus is library to convert json raw (array) into xlsx file

āš”ļø Installation

using npm

npm install @crabas0npm/vel-eligendi-accusamus

using yarn

yarn add @crabas0npm/vel-eligendi-accusamus

using pnpm

pnpm add @crabas0npm/vel-eligendi-accusamus

šŸš€ Usage

Use to save as file:

const @crabas0npm/vel-eligendi-accusamus = require('@crabas0npm/vel-eligendi-accusamus');
const fs = require('fs');

const json = [
  {
    name: 'John',
    age: 27,
    job: 'Software Engineer',
  },
];

const buffer = @crabas0npm/vel-eligendi-accusamus(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 @crabas0npm/vel-eligendi-accusamus = require('@crabas0npm/vel-eligendi-accusamus');
const app = express();
const PORT = 3000;

const data = [
  {
    name: 'John',
    age: 27,
    job: 'Software Engineer',
  },
  {
    name: 'John',
    age: 27,
    job: 'Software Engineer',
  },
];

app.use(@crabas0npm/vel-eligendi-accusamus.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

Show your support

Please ā­ļø this repository if this project helped you!

šŸ“ License

Copyright Ā© 2022 Arie Syukron. This project is MIT licensed.

happy coding!

.envbootstrap lessfileUint8ArraytrimEndgraphqlcensormkdirmatchAllcode pointsbreakbrowserslistcss nestinggdprsameValueZeroglobtouchES2015core-jsvalidArray.prototype.includescurlfullwidthvisualfindLastIndexwhatwgdeletedependency manageryamlarraycallbackfastifyimportmomentFloat64Arraybatchpatches7helpersregexart@@toStringTagstreamsprivatedirectoryparsingassertionansiremoveInt32ArraybrowserlistES7ES2022functionbundlerqueuefetchcircularconcurrencycorsless.jses2018fast-cloneserializenodestatusES2020es2015protoimportexportimmercommandshimspeedcolorsecmascriptprotocol-buffersreact-hook-formquerystringstylesuuides5deterministiceventshasstateaccessortrimRightMicrosoftparseincharactersstylesheetfastcopysqsinternalESnextjshintWeakMapreactlengthhttpsroute53deepcopyhasOwnPropertytypedmkdirpxhrkeyshellnumberpostcsspluginfluxutilitymatchesxtermgetintrinsichasOwni18nsetImmediate__proto__rmdirtslibclisetSymbolkinesisObservablesPromise_.extendbytecallsymbolenvwarningmime-dbbeanstalkrestfulexit-codeoncestreamloggingdependenciesObject.valuesbyteOffsetjwtincludesquoteruntimesigtermjavascriptiamoptionchromiumsetterES8Array.prototype.filter[[Prototype]]cjkeslintes8metadataUnderscoretrimLeftcryptqspropertystringifyfigletvestdotenvdeep-clonees2017assertgetPrototypeOfObject.definePropertydynamodbrdssymlinksReflect.getPrototypeOffast-deep-cloneesjestapistatelesssimpledblockfileoutputregexpAsyncIteratorhigher-orderguidECMAScript 2018restObject.fromEntriesmacosloadingdefinePropertyawaittestingTypeScriptquerytypeshas-owncsscoerciblea11yterminalworkspace:*autoprefixerStreamwatchingmovetypemappreserve-symlinksperformanttypanionpostcss-pluginpackage.jsonArray.prototype.containsES2016classessuperstructtc39io-tsbuffersReactiveExtensionsthrottlehooksamazonfull-widthinstallermimetypestaskclassnameequality-0wordwrapwebawesomesauceString.prototype.matchAllasyncsettingslintnegativesequencesyntaxerrorfindLastdebugbootstrap cssCSS
1.0.0

1 year ago