7.0.0 • Published 5 years ago

mapfs v7.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

mapfs

A little utility function for easily creating files to help with testing.

Install

npm install mapfs

Example

import { join } from 'path'
import mapfs from 'mapfs'

const tmp = join(__dirname, 'tmp')
const cleanup = await mapfs(tmp, {
  'test/test.js': `console.log('test')`
  'a.js': `console.log('a')`
  'b/b.js': `console.log('a')`
})

// ...run some tests...

// cleanup the created files
await cleanup()

License

MIT

7.0.0

5 years ago

6.15.0

6 years ago

6.14.0

6 years ago

6.13.0

6 years ago

6.12.0

6 years ago

6.11.0

6 years ago

6.10.0

6 years ago

6.9.0

6 years ago

6.8.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago