Code Monkey home page Code Monkey logo

apputil's Introduction

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 drivers jsShellDriver.* 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";

apputil's People

Contributors

unsaved avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.