broccoli-output-wrapper

Output wrapper is a library to write output file to outputpath.

Usage no npm install needed!

<script type="module">
  import broccoliOutputWrapper from 'https://cdn.skypack.dev/broccoli-output-wrapper';
</script>

README

broccoli-output-wrapper

This libary is to provide Proxy to FS operations for Broccoli. Broccoli Plugin developers can just write to the outputPath using the proxy. This libary is not intended to use independently outside broccoli or broccoli-plugin as of now.

APIs

  • readFileSync
  • existsSync
  • lstatSync
  • readdirSync
  • statSync
  • writeFileSync
  • appendFileSync
  • mkdirSync
  • unlinkSync
  • symlinkSync
  • utimesSync

All these operations above are same as File Operations documented in node API guide.

  • rmdirSync

Perform same operation as node guide. We have polyfilled recursive: true option to perform a recursive directory removal. In recursive mode, errors are not reported if path does not exist, and operations are retried on failure. Default: false