Socket
Socket
Sign inDemoInstall

fastboot-transform

Package Overview
Dependencies
82
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fastboot-transform

Utility to transform given broccoli tree that contains browser API to be fastboot complaint.


Version published
Weekly downloads
53K
decreased by-4.44%
Maintainers
1
Install size
7.70 MB
Created
Weekly downloads
 

Readme

Source

fastboot-transform

Transforms a given broccoli tree, which contains files using browser APIs, to be FastBoot compliant.

Usage

If your library here at a/b/c.js contains:

window.foo = bar;

The above file is not compatible in FastBoot. Therefore, you will need to wrap it with:

var fastboot-transform = require('fastboot-transform');

fastboot-transform(new Funnel('a/b/c.js'));

The result of the above is:

if (typeof FastBoot === 'undefined') {
 window.foo = bar;
}

FAQs

Last updated on 25 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc