# liveobject

> Sync a javascript object with a json file.

Latest version **0.1.7** (published 2020-05-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install liveobject
pnpm add liveobject
yarn add liveobject
bun add liveobject
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2020-05-11 |
| First published | 2020-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Simon Lindgren |
| Maintainers | swz-npm |
| Keywords | file, sync, json, javascript |

## Links

- npm: https://www.npmjs.com/package/liveobject
- npm.io page: https://npm.io/package/liveobject

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) 0.0.1-security

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.7 (latest) — 2020-05-11
- 0.1.6 — 2020-05-11
- 0.1.5 — 2020-05-11
- 0.1.4 — 2020-05-08
- 0.1.3 — 2020-05-08
- 0.1.2 — 2020-05-08
- 0.1.1 — 2020-05-08
- 0.1.0 — 2020-05-08

## README

# LiveObject

A fast way to store objects between sessions.

## What is this?

This is a project for updating JSON files live from a variable.

## How can I use it?

You just type `npm i -s liveobject` into the terminal or command prompt.
Then you import the package using `const {LiveObject} = require("liveobject")`.
Then, to make a variable you just use `let myObject = LiveObject("./Path/To/Json-File-To-Start-From-And-Write-From.json")`.

When your done your code should look like this:

```js
const { LiveObject } = require("liveobject");

let myObject = LiveObject(
  "./Path/To/Json-File-To-Start-From-And-Write-From.json"
);
```

The live object is used the same way as a object variable so it is easy to understand.

---
_Source: https://npm.io/package/liveobject · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
