sylvainpolletvillard / ObjectModel

Strong Dynamically Typed Object Modeling for JavaScript
http://objectmodel.js.org
MIT License
467 stars 28 forks source link

How to use on NodeJS? #50

Closed jesse1983 closed 7 years ago

jesse1983 commented 7 years ago

How to use with CommonJS or ESModule?

sylvainpolletvillard commented 7 years ago

npm install objectmodel

const Model = require("objectmodel")

console.log(Model.Object)

ObjectModel is distributed on NPM with the UMD build (Universal Module Definition). It works for CommonJS modules, AMD modules and global variable as a fallback.

ES Modules with tree shaking is coming in v3... soon

jesse1983 commented 7 years ago

Tks!