Notify President Madagascar
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    testfspublic

    testfs

    Easily create files under a prefix for testing fs modules.

    build status dependency status dev dependency status

    npm

    Example

    var testfs = require('testfs');
    var exec = require('child_process').exec;
     
    var fixtures = [
      '1.txt',
      'sub/subsub/2.txt',
      'sub/subsub2/',
      '1.txt -> l.txt',
      '../1.txt -> sub/l.txt'
    ];
     
    testfs('example', fixtures, function (err, rm) {
      exec('find | wc -l', function (err, stdout, stderr) {
        console.log(stdout);
     
        rm(function (err) {
          exec('find | wc -l', function (err, stdout, stderr) {
            console.log(stdout);
          });
        });
      });
    });

    License

    MIT

    Keywords

    none

    install

    npm i testfs

    Downloadsweekly downloads

    9

    version

    1.0.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar