@dwidge/node-common

1.0.1 • Public • Published

@dwidge/node-common

Useful functions for NodeJS.

Installation

npm install @dwidge/node-common

Usage

const { create } = require("@dwidge/node-common/s3");
const s3 = create({ endpoint: "localhost:9000" });
const cron = require("@dwidge/node-common/cron");
await cron(
  [
    {
      name: "JobA",
      cron: "*/1 * * * *",
      startup: true,
      test: () => console.log("Running JobA..."),
    },
  ],
  { startup: false, logError: console.log }
);

License

Copyright DWJ 2023.
Distributed under the Boost Software License, Version 1.0.
https://www.boost.org/LICENSE_1_0.txt

Readme

Keywords

none

Package Sidebar

Install

npm i @dwidge/node-common

Weekly Downloads

2

Version

1.0.1

License

BSL-1.0

Unpacked Size

21.6 kB

Total Files

39

Last publish

Collaborators

  • dwidge