How to tell the version number of RxJS

Sohail Si picture Sohail Si · Sep 23, 2016 · Viewed 14.1k times · Source

How to tell the version of the installed RxJS from the code? For example:

var Rx = require('rxjs/Rx');
console.log(Rx.rev);   // undefined
console.log(Rx.version);  // undefined

Second question: How to tell if it's rxjs5 ?

Answer

Preston picture Preston · Oct 4, 2017

This will show all NPM package versions if you installed with NPM.

npm list --depth=0

If you leave out the --depth then you'll get all their dependencies also.