
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
abitbol-serializable
Advanced tools
Abitbol Serializable is an abitbol class that can serialize its properties.
Features:
"@serializable false"
.Example Class:
var SerializableClass = require("abitbol-serializable");
var Person = SerializableClass.$extend({
__name__: "Person", // The class name
__init__: function(params) {
this.$data.firstName = "John";
this.$data.lastName = "DOE";
this.$data.age = 0;
this.$super(params);
},
getFirstName: function() {
return this.$data.firstName;
},
setFirstName: function(firstName) {
this.$data.firstName = firstName;
},
getLastName: function() {
return this.$data.lastName;
},
setLastName: function(lastName) {
this.$data.lastName = lastName;
},
getAge: function() {
"@serializable false";
return this.$data.age;
},
setAge: function(age) {
this.$data.age = age;
}
});
Example Serialization:
var john = new Person({
lastName: "Wayne",
age: 72
});
john.serialize();
// -> {
// __name__: "Person",
// id: "<an autogenerated uuid>",
// firstName: "John",
// lastName: "Wayne"
// }
To install Abitbol Serializable run the following command:
npm install abitbol-serializable
If you have any question, you can:
If you found a bug, please open an issue on Github with as much information as possible.
Please consider filing a bug before starting to work on a new feature. This will allow us to discuss the best way to do it. This is of course not necessary if you just want to fix some typo or small errors in the code.
To check coding style, run the follwoing command:
npm run lint
Tu run tests, use the following command:
npm run test
[NEXT] (changes on master that have not been released yet):
v2.1.0:
v2.0.2:
v2.0.1:
v2.0.0:
abitbol
dependency to 2.0.0v1.0.2:
v1.0.1:
uuid
dependency to 3.0.0v1.0.0:
FAQs
Serializable classes based on Abitbol classes
We found that abitbol-serializable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.