Comparing version 1.0.0 to 1.1.0
{ | ||
"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'; | ||
} | ||
}) | ||
``` |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4276
6
64
25
0
1
3
+ Addedstylon@0.0.1
+ Addedstylon@0.0.1(transitive)