Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Library for Models and Collection use in JS worlds
Documentation: https://pxyup.github.io/lanurite/
For use in browser
<script src="../dist/lanurite.js"></script>
For use in TypeScript
import * as Lanurite from "lanurite"
console.log(Lanurite.version)
For use in NodeJS
var Lanurite = require("lanurite");
console.log(Lanurite.version)
let model = new Lanurite.Model({name: "Robot"});
document.getElementById("test").innerHTML = model.get("name");
model.on("change", function (e) {
document.getElementById("test").innerHTML = model.get("name")
model.off("change", log)
});
let collection = new Lanurite.Collection();
collection.on("add", function (model) {
document.getElementById("collection").innerHTML += model.get("name") + "<br>"
})
collection.on("clear", function () {
document.getElementById("collection").innerHTML = "";
});
model.on("change", log);
collection.on("reset", function () {
getCollectionDOM();
});
getCollectionDOM();
function log(event){
console.log(event)
}
function getCollectionDOM() {
document.getElementById("collection").innerHTML = "";
collection.each((el) => {
document.getElementById("collection").innerHTML += el.get("name") + "<br>"
});
}
FAQs
Library for Models and Collection use in JS worlds
The npm package lanurite receives a total of 6 weekly downloads. As such, lanurite popularity was classified as not popular.
We found that lanurite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.