How to use nodem - 2 common examples

To help you get started, we’ve selected a few nodem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robtweed / ewd.js / extras / startupExamples / test-gtm.js View on Github external
var ewdGlobals = require('./node_modules/ewdjs/node_modules/globalsjs');
var interface = require('nodem');
require('gtm-config');
var db = new interface.Gtm();
console.log('db: ' + JSON.stringify(db));
var ok = db.open();
console.log('db.optn: ' + JSON.stringify(ok));
ewdGlobals.init(db);

var ewd = {
  mumps: ewdGlobals
};


// Environment is now set up exactly as within EWD.js
// for accessing Mumps globals and functions from within this
// test harness

console.log(JSON.stringify(db.about()));
github robtweed / ewd.js / extras / OSEHRA / registerWSClient.js View on Github external
var ewdGlobals = require('./node_modules/ewdjs/node_modules/globalsjs');
var interface = require('nodem');
require('gtm-config');
var db = new interface.Gtm();
var ok = db.open();
ewdGlobals.init(db);

var ewd = {
  mumps: ewdGlobals
};

var zewd = new ewd.mumps.GlobalNode('%zewd', []);
zewd._setDocument({
  "EWDLiteServiceAccessId": {
    "VistAClient": {
      "secretKey": "$keepSecret!",
      "apps": {
        "VistADemo": true,
        "VistARestServer": true
      }

nodem

A YottaDB and GT.M database driver and language binding for Node.js

AGPL-3.0
Latest version published 8 months ago

Package Health Score

56 / 100
Full package analysis

Popular nodem functions