# fastboot-transform

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

Latest version **0.1.3** (published 2018-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastboot-transform
pnpm add fastboot-transform
yarn add fastboot-transform
bun add fastboot-transform
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2018-02-25 |
| First published | 2017-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 44.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Krati Ahuja |
| Maintainers | kratiahuja |

## Links

- npm: https://www.npmjs.com/package/fastboot-transform
- Repository: https://github.com/kratiahuja/fastboot-transform
- Homepage: https://github.com/kratiahuja/fastboot-transform#readme
- Issues: https://github.com/kratiahuja/fastboot-transform/issues
- npm.io page: https://npm.io/package/fastboot-transform

## Dependencies (2)

- [broccoli-stew](https://npm.io/package/broccoli-stew.md) ^1.5.0
- [convert-source-map](https://npm.io/package/convert-source-map.md) ^1.5.1

## Recent versions

- 0.1.3 (latest) — 2018-02-25
- 0.0.3 (0.0.2) — 2017-06-04
- 0.1.2 — 2017-07-07
- 0.1.1 — 2017-06-22
- 0.1.0 — 2017-06-04

## README

# 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:
```js
window.foo = bar;
```

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

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

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

The result of the above is:
```js
if (typeof FastBoot === 'undefined') {
 window.foo = bar;
}
```

---
_Source: https://npm.io/package/fastboot-transform · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
