0.6.3 • Published 7 months ago

@ove-lib/utils v0.6.3

Weekly downloads
5
License
MIT
Repository
github
Last release
7 months ago

@ove-lib/utils

Core utility library for Open Visualization Environment (OVE) framework.

Install

npm install @ove-lib/utils --save

Usage

To use the entire library:

const path = require('path');
const express = require('express');
const app = express();
const dirs = {
    base: __dirname,
    nodeModules: path.join(__dirname, '..', 'node_modules'),
    constants: path.join(__dirname, 'constants'),
    rootPage: path.join(__dirname, 'client', 'landing.html')
};
const { Constants, Utils } = require('@ove-lib/utils')('myapp', app, dirs);
const log = Utils.Logger('myapp');
log.debug('Starting application:', 'myapp');

To use logging and common utility functions:

const { Utils } = require('@ove-lib/utils')();
const log = Utils.Logger('myapp');
log.debug('Sample log message');
0.6.3

7 months ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

4 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

6 years ago