An open API service indexing awesome lists of open source software.

https://github.com/bahrus/be-scoping


https://github.com/bahrus/be-scoping

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# be-scoping [TODO]

## Example 1

```html


Avatar


Director: James Cameron (born August 16,
1954)

Science fiction
Trailer
See reviews

{
reviews: `https://www.rottentomatoes.com/search?search=${name}`
}

scope[value] = ('href' in target) ? target.href : target.textContent

```

Shorthand for:

```html


Avatar


Director: James Cameron (born August 16,
1954)

Science fiction
Trailer
See reviews

export const Scopelet = class{
do({name}) => ({
reviews: `https://www.rottentomatoes.com/search?search=${name}`
})
}

export const Scriptlet = class {
async do ({target, added, value, scope}) => {
scope[value] = ('href' in target) ? target.href : target.textContent;
}

}

```

[TODO]: Figure out, then explain precisely how be-scoping differs from be-calculating.