fixturify
- Version 3.0.0
- Published
- 12.1 kB
- 6 dependencies
- MIT license
Install
npm i fixturify
yarn add fixturify
pnpm add fixturify
Overview
Convert objects into directory structures and back again
Index
Functions
Interfaces
interface DirJSON
interface DirJSON {}
A recursive JSON representation of a directory. This representation includes both files, their contents and directories which can contain both files and directories.
```ts const files : DirJSON = { 'index.js': 'content', 'foo.txt': 'content', 'folder': { 'index.js': 'content', 'apple.js': 'content', 'other-folder': { } }, } ```
index signature
[filename: string]: DirJSON | string | null;
interface Options
interface Options {}
property directories
directories?: boolean;
property exclude
exclude?: (IMinimatch | string)[];
property globs
globs?: (string | IMinimatch)[];
property ignore
ignore?: (string | IMinimatch)[];
property ignoreEmptyDirs
ignoreEmptyDirs?: boolean;
property include
include?: (IMinimatch | string)[];
Package Files (1)
Dependencies (6)
Dev Dependencies (4)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/fixturify
.
- Markdown[](https://www.jsdocs.io/package/fixturify)
- HTML<a href="https://www.jsdocs.io/package/fixturify"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3134 ms. - Missing or incorrect documentation? Open an issue for this package.