4.1.1 • Published 6 months ago

@admc.com/apputil v4.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

Description

Application Development Utilities

An Error type and handlers for concise error handling for expected failure cases.

A very powerful script runner, JsShell, that's more precise and direct for controlled program executions than OS shells.

Since version 2.4.0 supports both CommonJS/ES5 requires and ES6 import...from. Since version 4.1.0 supports deno.

Load some subset of these functions

  • AppErr An Error type for facilitating concise error reporting
  • conciseCatcher Function wrapper to succinctly report on expected errors
  • isPlainObject
  • JsShell A powerful system for executing a batch of commands (command-line driver provided)
  • mkConciseErrorHandler Succinct error reporting for use in catch blocks and by conciseCatcher
  • mkDate Create Date objects for days with local midnight time, with optional convenient offsets
  • NetRC Load .netrc entries.
  • offsetDate Conveniently generate a new Date with specified offsets from the provided date
  • plusify Prefix number strings with a + prefix for positives (with Deno sprintf is more general).
  • zxs Several additional schemas for Zod

like so:

const { AppErr, conciseCatcher, conciseErrorHandler } = require("@admc.com/apputil");

OR

import { AppErr, conciseCatcher, conciseErrorHandler} from "@admc.com/apputil";

OR

import { AppErr, conciseCatcher, conciseErrorHandler} from "https://deno.land/x/apputil/apputil-deno.mjs";
4.1.0

6 months ago

4.0.3

7 months ago

4.1.1

6 months ago

4.0.1

7 months ago

4.0.0

7 months ago

4.0.2

7 months ago

2.3.0

7 months ago

2.2.1

7 months ago

2.2.0

7 months ago

2.1.1

7 months ago

2.5.0

7 months ago

2.4.1

7 months ago

2.4.0

7 months ago

2.2.2

7 months ago

2.4.2

7 months ago

2.1.0

7 months ago

3.0.0

7 months ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.8

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago