Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@berslucas/liljs
Advanced tools
Readme
For demos and examples, please visit lucasbersier.com/liljs
To start a liljs instance, you must call the function liljs
with an html element to bootstrap to and an optional object with data for the first render cycle.
<div id="app">
<!-- Elements using lil-* attributes -->
</div>
<script>
liljs(document.querySelector('#app'), {
propertyName: propertyValue,
propertyName: propertyValue,
...
}).then((app) => {
});
</script>
The liljs
promise will initialize and render your app, and the returned value, app
will be a proxy containing all properties you have defined. To change a value, use app.propertyName
and that value will be update both in your proxy and in the DOM.
A Property is a value attached to the liljs proxy that will update the proxy once the value is updated. Properties are created by adding attributes to the child elements of the element defined in the first parameter of liljs()
when you initialize your instance.
Properties can be updated by changing their value. This will also re-render the element that the property is attached to.
Sometimes you'd like to add a property after the app has been rendered. This is possible by calling app.addProp
on your proxy object.
liljs(document.querySelector('#app'), {
propertyName: propertyValue,
...
}).then((app) => {
app.addProp(
name, type, elemList, value
)
});
This function takes the following parameters:
Name | Type | Description |
---|---|---|
name | String | Name of a property to add |
type | String | Bind type (style, text, list, ect...) |
elemList | Array | Array of element(s) to apply this property to |
value | Any | Name of the property to render |
FAQs
A DOM-driven micro-framework for Javascript applications
The npm package @berslucas/liljs receives a total of 10 weekly downloads. As such, @berslucas/liljs popularity was classified as not popular.
We found that @berslucas/liljs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.