node package manager


Build Status


A Node.js module wrapper for downloading/installing ALL versions of the "playerglobal.swc" API library in order to target all modern versions of Flash Player. Downloads the latest versions upon install, rather than during prepublish.

As such, a consumer can always just run npm update/npm install to get the latest updates despite the module's version being unchanged. A bastardization of Semantic Versioning, yes, but very useful nonetheless.

If you don't like this non-idempotent behavior, check out JamesMGreene/node-playerglobal instead.


npm install playerglobal-latest


var pg = require('playerglobal-latest');
console.log('PlayerGlobal root path: ' + pg.path);
// Install the PlayerGlobal dir into a Flex SDK dir 
var FLEX_HOME = process.env['FLEX_HOME'] || __dirname;
pg.install(FLEX_HOME, function(err) {
  if (err) {
    console.error('Failed to install the Flash API libraries!\nError: ' + err);