benjamn

benjamn/private

Utility for associating truly private state with any JavaScript object

JavaScript
56
6
MIT License

The `private` utility allows JavaScript developers to associate truly private state with any object, ensuring that sensitive data remains inaccessible from outside code. It provides two main approaches: a `makeAccessor` function for creating private object properties that can only be accessed with a unique function reference, and a `makeUniqueKey` function for generating non-enumerable, unguessable property keys. This tool is ideal for developers seeking to implement robust data privacy in JavaScript, especially when working with inheritance or shared class instances where traditional closure privacy falls short.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of benjamn/private

Account's avatar
simple, flexible, fun test framework

Support the repos that depend on this repository

Top contributors

benjamn's profile
benjamn
47 contributions
jamestalmage's profile
jamestalmage
1 contributions
ysangkok's profile
ysangkok
1 contributions
greenkeeper[bot]'s profile
greenkeeper[bot]
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet