ecozoic / proxify Goto Github PK
View Code? Open in Web Editor NEWAn ES6 library for wrapping objects in proxies that provide logging and profiling information
License: MIT License
An ES6 library for wrapping objects in proxies that provide logging and profiling information
License: MIT License
Proxify should be able to take in a settings object that defines the keys, traps, and log level that the proxy operates on. This should be an optional second parameter to the proxify function that has default values if none are provided.
The settings object should also have multiple ways of describing the proxies behavior: general, by-key, and by-key-by-trap. Due to the various ways that the settings for the proxy can be described, the settings object needs to be normalized when passed in so that all future uses can program against a common model.
In the proxy handlers, we are currently calling logger directly.
We should instead emit an event that the logger is subscribed to.
This would:
a) allow multiple listeners b/c of the pub/sub model
b) lead the way for consumers to provide their own custom listeners when configuring a proxy
c) prevent performance issues b/c event notification should be async
Ideally I'd like to use Node's EventEmitter, but EventEmitter is synchronous. See here. Might require some investigation...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.