restutils-helpers

0.1.4 • Public • Published

RESTUtils Logo

RESTUtils Helpers (restutils-helpers)

Completely optional helper functions for use with RESTUtils Host & RESTUtils Client

NOTICE: Move to ES6 Modules

With the release of RESTUtils Helpers v0.1.0 on July 6, 2023, this project was migrated from CommonJS to ES6 Modules. The CommonJS library version was moved to a a separate project restutils-helpers-js, with a matching version number. This repo does not have the -js suffix in the name as it is using ES6 modules.

Purpose

This optional package is designed to work with APIs and clients generated by the RESTUtils Host and RESTUtils Client utilities. Both utilities use this one under the covers and you are welcome to use it directly. Concepts such as error invocation and marshaling results are made easier by having one "helpers" library that you can use on both sides of the network.

Installation

There is no requirement to install this package to benefit from the RESTUtils Host and RESTUtils Client utilities. However, if you do want to use this package directly, unlike it's counterparts, it needs to be installed into your project...

npm i restutils-helpers

Usage

I'll add a few example snippets here once the first version is published.

Cleaner Node

Years ago I created a similar helper library, called "Cleaner Node". The goal was to create simplified shorthand for common functions to reduce the verbosity of syntax in Node projects; for example, validating objects and data types, generating UIDs, working with email addresses, and the like. Those patterns are followed here but with a bit more focus on the RESTUtils effort.

Contact

Please feel free to contact me directly with any questions, comments, or enhancement requests:

Fred Lackey
fred.lackey@gmail.com
http://fredlackey.com

Package Sidebar

Install

npm i restutils-helpers

Weekly Downloads

1

Version

0.1.4

License

Apache-2.0

Unpacked Size

2.47 MB

Total Files

138

Last publish

Collaborators

  • fredlackey