sb-node-utils
v0.0.1
Published
StoryBots NodeJs Utilities
Downloads
2
Readme
sb-node-utils
StoryBots Utilities for NodeJS applications.
Instalation
npm install sb-node-utils --save
Usage
JavaScript
var utils = require('sb-node-utils');
class Hero {
constructor(name, level) {
this.name = name;
this.level = level;
}
}
let obj = new Hero('Jhon', 10);
let encryptedText = utils.encryptObject(obj, password);
console.log('encryptedText', encryptedText);
Typescript
import * as utils from 'sb-node-utils';
class Hero {
constructor(name, level) {
this.name = name;
this.level = level;
}
}
let obj = new Hero('Jhon', 10);
let encryptedText = utils.encryptObject(obj, password);
console.log('encryptedText', encryptedText);
Test
npm run test