Try any Node.js package right in your browser

Share this code:

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including flow-classy-type-wrapper with all npm packages installed. Try it out:

flow-classy-type-wrapper v1.0.2

Type-wrappers for Flow, quickly defined with ES6 classes.

Classy Type-Wrapper for Flow

A tiny module that gives you the TypeWrapper class + static methods bundle, for quick definition of type wrappers.

What are Type Wrappers?

A way of declaring a new type, that is simply a wrapper around another type, to make mix-ups easier to prevent. For example, declaring a wrapper around string called UserID, to stop User IDs from being mixed up with other strings, like usernames or descriptions.