This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
269fe22
commit 152d286
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
# JsObjectProxyHelper | ||
Convert to proxy to protect objects | ||
Convert object to proxy to protect the objects | ||
|
||
``npm install @knighttower/js-object-proxy-helper`` | ||
|
||
``yarn add @knighttower/js-object-proxy-helper`` | ||
|
||
```css | ||
/** | ||
* @module ProxyHelper | ||
* Convert to proxy to protect objects | ||
* Allows to declare _private, _protected and _mutable all arrays with prop names | ||
* @example ProxyHelper({objectProps..., _protected: array(...)}) | ||
* @param {Object} object | ||
* @return {Proxy} | ||
* @usage const proxy = ProxyHelper({objectProps..., _protected: array(...), _private: array(...), _mutable: array(...)}) | ||
* @usage _protected: array(...) -> Cannot be modified | ||
* @usage _private: array(...) -> Cannot be accessed | ||
* @usage _mutable: array(...) -> Can be modified | ||
*/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters