Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ezobjects

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezobjects - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "ezobjects",
"version": "1.1.2",
"version": "1.1.3",
"description": "Easy dynamic object generation with strict typing and set chaining",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

# EZ Objects v1.1.2
# EZ Objects v1.1.3

@@ -8,11 +8,15 @@ EZ Objects is a Node.js module, the purpose of which is to save you lots of time writing the initializer, property getters,

* Auto-initializes all properties (including parent object properties, if extended)
* * Default default values for different data types are listed further below
* * You can specify the default value for a property in the config when you create the EZ Object
* * You can pass a value that the property should have when instansiating the EZ Object
* Automatically creates methods that perform getter/setter functionality with strict data typing
* * Methods use myMethod() for getter and myMethod(val) for setter
* * Methods throw TypeError if type does not match that specified
* * Methods return 'this' when setting so set calls can be chained
Auto-initializes all properties (including parent object properties, if extended)
* Default default values for different data types are listed further below
* You can specify the default value for a property in the config when you create the EZ Object
* You can pass a value that the property should have when instansiating the EZ Object
* If the object has been JSON encoded and parsed, the properties will have the internal property
underscores `_`, fortunately the module will strip the `_` from the object if you wish to initialize
a new object using a JSON decoded version of the same object
Automatically creates methods that perform getter/setter functionality with strict data typing
* Methods use myMethod() for getter and myMethod(val) for setter
* Methods throw TypeError if type does not match that specified
* Methods return 'this' when setting so set calls can be chained
See the examples below to witness them used in a variety of situations.

@@ -19,0 +23,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc