New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

attrs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attrs - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

test/attrs.js

12

package.json
{
"name": "attrs",
"version": "1.0.0",
"version": "1.1.0",
"description": "object to dom attributes",

@@ -23,3 +23,11 @@ "main": "index.js",

},
"homepage": "https://github.com/bredele/attrs#readme"
"homepage": "https://github.com/bredele/attrs#readme",
"devDependencies": {
"browserify": "^13.0.0",
"tape": "^4.5.1",
"tape-run": "^2.1.3"
},
"dependencies": {
"stylon": "0.0.1"
}
}

@@ -1,2 +0,24 @@

# attr
set dom attribute(s)
# attrs
Object as DOM attributes.
## usage
```js
var attrs = require('attrs');
var bool = true;
var input = document.createElement('input');
attrs(input, {
id: 'input',
checked: true,
class: ['hello', 'world'],
style : {
top: 100 + 'px',
bottom: 200 + 'px'
},
type: function() {
return bool ? 'radio' : 'checkbox';
}
})
```
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