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

eldo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eldo - npm Package Compare versions

Comparing version

to
1.2.0

index.html

8

index.js

@@ -44,2 +44,10 @@ class El {

style (styleName, value) {
if (styleName === undefined) {
return this.$el.style
}
if (value === undefined) {
return this.$el.style[styleName]
}
this.$el.style[styleName] = value

@@ -46,0 +54,0 @@ return this

2

package.json
{
"name": "eldo",
"version": "1.1.0",
"version": "1.2.0",
"description": "Tiny chainable DOM manipulation lib.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,3 +43,3 @@ # el.js

## API
## API

@@ -78,3 +78,3 @@ - `constructor(element)`

`constructor (element)`
`constructor (element)`

@@ -128,3 +128,3 @@ Where `element` can be any valid CSS selector or a reference to an element.

### Enable element
### Enable element

@@ -135,4 +135,16 @@ `$myEl.disable()`

### Set styles on element
### Get all styles on element
`$myEl.style()`
Returns styles object containing all styles set on element.
### Get specific style on element
`$myEl.style('color')`
Returns requested style value.
### Set style on element
`$myEl.style('color', 'black')`

@@ -182,3 +194,3 @@

- ext: `jpg`
If we have the following files:

@@ -329,2 +341,1 @@

```