Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

model-attributes

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

model-attributes

attribute meta description

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by47.48%
Maintainers
1
Weekly downloads
 
Created
Source

model-attributes

attribute meta description

npm semantic-release Build Status bithound codecov.io Code Climate GitHub Issues Dependency Status devDependency Status docs downloads Commitizen friendly

const ma = require('model-attributes');

const attributes = {
  att1: {},
  att2: { datault: 2}
};

const object = {};

ma.setAttributes(object, attributes, {
  att1: 'value1'
});

console.log(object.att1); // value1
console.log(object.att2); // 2

install

With npm do:

npm install model-attributes

license

BSD-2-Clause

Keywords

FAQs

Package last updated on 02 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc