sindresorhus / any-observable

Support any Observable library and polyfill
MIT License
70 stars 12 forks source link

add registration shortcuts #10

Closed jamestalmage closed 8 years ago

jamestalmage commented 8 years ago

Fixes #2

This adds the following shortcut registrations:

Shortcut registration can be done as follows:

import `any-observable/register/zen`;

It's especially handy for more recent versions of Node (and many test runners), that offer a --require flag:

$ ava --require any-observable/register/zen test.js
sindresorhus commented 8 years ago

Can you add the register shortcuts we support to the readme? Pretty much just copy-paste the PR description.

jamestalmage commented 8 years ago

docs added.

sindresorhus commented 8 years ago

LGTM to merge when the minor inline feedback is resolved :)