Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including elegant-interceptor with all npm packages installed. Try it out:

var elegantInterceptor = require("elegant-interceptor")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

elegant-interceptor v0.9.9

this is the elegant interceptor class where you can create a new elegant interceptor by instantiating it, every request in the system will pass through a stack of elegant interceptors, each interceptor handles a certain job and has its own weight to determinate when it will be executed, each interceptor can also export a variable to the next interceptor using the export method.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free