npm.io
0.27.0 • Published 6 years ago

@velcro/resolver-host-memory

Licence
MIT
Version
0.27.0
Deps
3
Size
94 kB
Vulns
0
Weekly
197
Stars
190

@velcro/resolver-host-fs

A class that implements the ResolverHost interface over an in-memory mock filesystem.

Usage

const host = new Velcro.ResolverHostMemory({
  'path/to/string/file': 'file contents',
  'path/to/binary/file': {
    content: 'SGVsbG8gd29ybGQK',
    encoding: 'base64',
  },
});