https://github.com/bahrus/be-scoping
https://github.com/bahrus/be-scoping
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bahrus/be-scoping
- Owner: bahrus
- License: mit
- Created: 2022-10-01T16:05:13.000Z (over 2 years ago)
- Default Branch: baseline
- Last Pushed: 2022-10-03T21:39:22.000Z (over 2 years ago)
- Last Synced: 2025-02-01T14:46:29.446Z (5 months ago)
- Language: TypeScript
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# be-scoping [TODO]
## Example 1
```html
{
reviews: `https://www.rottentomatoes.com/search?search=${name}`
}scope[value] = ('href' in target) ? target.href : target.textContent
```
Shorthand for:
```html
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.