An open API service indexing awesome lists of open source software.

https://github.com/invrs/fxtr

Copy files to tmp and read/write them
https://github.com/invrs/fxtr

fixture

Last synced: 4 days ago
JSON representation

Copy files to tmp and read/write them

Awesome Lists containing this project

README

          

# Fxtr

Copy files to tmp and read/write them.

## Install

```bash
npm install --save-dev fxtr
```

## Usage

```js
import { fixtures } from "fxtr"

let { path, read, write } = await fixtures(__dirname, "fixtures")

write("test.json", { hello: "world" })
read("test.json") // { hello: "world" }
```