libs.sys.utils
v1.0.7
Published
Utilities
Downloads
4
Readme
# libs.sys.utils
A Node.js package that checks whether a given string is null or empty. A basic package for an npm publish tutorial.
Usage
First, install the package using npm:
npm install libs.sys.utils --save
Then, require the package and use it like so:
var utils = require('libs.sys.utils');
var accountModel=utils.createModel("accounts");
accountModel.fields([{
name:"UserName",
dataType:"date",
isRequire:true
},{
name:"Password",
dataType:"text",
isRequire:true
}]);
var account=accountModel.createInstance();
account.setUserName("admin");
account.setPassword("admin");
console.log(JSON.stringify(account));
License
Apache 2.0