Have ideas to improve npm?Join in the discussion! »

    lasso-fs-writer
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    lasso-fs-writer

    A plugin for lasso that will allow you to use a custom FS when writing files. This is useful for things like saving the output to memory.

    WARNING: lasso-fs-writer should only be used to do Lasso with prebuilds.

    Usage

    const fs = require('memory-fs');
    require('lasso').configure({
      plugins: [
        {
          plugin: 'lasso-fs-writer',
          config: {
            fileSystem: new MemoryFS()
          }
        }
      ],
      ...
    });

    Configuration Properties

    • fileSystem {Object} - The new file system to use.

    Install

    npm i lasso-fs-writer

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar