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.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.jshintrc
.npmignore
.travis.yml
Gruntfile.js
LICENSE-MIT
README.md
index.js
install.js
package.json

README.md

Build Status

node-playerglobal-latest

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.

Install

npm install playerglobal-latest

Usage

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);
  }
});