Package Exports
- model-attributes
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (model-attributes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
model-attributes
attribute meta description
const ma = require('model-attributes');
const attributes = ma.createAttributes({
att1: {},
att2: { datault: 2}
});
const object = {};
ma.setAttributes(object, attributes, {
att1: 'value1'
});
console.log(object.att1); // value1
console.log(object.att2); // 2install
With npm do:
npm install model-attributeslicense
BSD-2-Clause
