Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
abitbol-serializable
Advanced tools
Readme
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.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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).