@dolchi21/file
v1.0.0
Published
```sh # INSTALL npm i @dolchi21/file ```
Downloads
9
Readme
# INSTALL
npm i @dolchi21/file
// Import
const file = require('@dolchi21/file')
// Write a file
const movies = [
{ title: "Weekend at Bernie's" },
{ title: "Det sjunde inseglet" }
]
await file('movies.json', movies)
// Read a file
const movies = await file('movies.json')
movies[0].title // Weekend at Bernie's
movies[1].title // Det sjunde inseglet