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
- Host: GitHub
- URL: https://github.com/invrs/fxtr
- Owner: invrs
- Created: 2018-01-30T16:35:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-29T05:17:12.000Z (about 8 years ago)
- Last Synced: 2025-08-09T06:38:33.920Z (10 months ago)
- Topics: fixture
- Language: JavaScript
- Size: 116 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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" }
```