0.8.0 • Published 1 year ago

@codesmithllc/utils v0.8.0

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

@codesmithllc/utils

@codesmithllc/utils is a collection of utilities used in Codesmith applications.

Installation

You can install @codesmithllc/utils by running the standard NPM install command.

npm install @codesmithllc/components

Usage

Once you have propertly installed @codesmithllc/utils, every module in this library can be imported as a named import:

const { envCheck, logger } = require('@codesmithllc/utils');

// ...

Development

All utilities should live in the src/ directory.

Adding a New Utility

To add a new utility, such as myUtility:

  1. Create a new directory src/myUtility with the following:

    • myUtility.js, the actual utility code
    • myUtility.test.js, which includes any unit or integration tests for myUtility.js
    • index.js, with the following:

      const baseModel = require('./baseModel.js');
      
      module.exports = baseModel;
  2. Add myUtility as an export in index.js.

  3. Go through the Local Development steps in the root README.md to merge and publish @codesmithllc/utils with the new utility. You must have Codesmith GitHub access to view the linked document.

Questions?

Please reach out to Codesmith for any questions about this package.

0.8.0

1 year ago

0.7.0

1 year ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

1.0.0

3 years ago