# eternal-js

> A JSON Manipulation Tool for In-File Databases

Latest version **1.0.7** (published 2022-05-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install eternal-js
pnpm add eternal-js
yarn add eternal-js
bun add eternal-js
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2022-05-07 |
| First published | 2021-05-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | sidharth_ponram |
| Maintainers | sidharth_ponram |
| Keywords | json, database, tool |

## Links

- npm: https://www.npmjs.com/package/eternal-js
- Repository: https://github.com/VaderAI/Eternal-JSON
- Homepage: http://not yet
- Issues: https://github.com/VaderAI/Eternal-JSON/issues
- npm.io page: https://npm.io/package/eternal-js

## 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

- 1.0.7 (latest) — 2022-05-07
- 1.0.6 — 2021-05-27
- 0.0.0 — 2021-05-21
- 1.0.5 — 2021-05-20
- 1.0.4 — 2021-05-19
- 1.0.3 — 2021-05-19
- 1.0.2 — 2021-05-19
- 1.0.1 — 2021-05-19
- 1.0.0 — 2021-05-18

## README

# Eternal.js: The ideal tool for JSON. 

Eternal.js makes it easy to do CRUD operations on JSON files. Just make the data folder, and use the functions. It is as simple as that. 

Example: 
```
{  
    name: `Smith`, 
    age: 59, 
    job: `Politician`, 
}
```
# Setup Guide

1. Install the Eternal Tool
``` 
     npm install eternal-js
```
2. Create a data folder. Eternal-js detects a procfile to store your json files. Name your folder "data". 

3. Create your First Eternal JSON data
```
   eternal.create('my_database', { 
        name: `Doge`, 
        age: 25, 
        grade: 2, 
   }, () => console.log('Data Printed!'));
```
4. Want some more commands? Here is some syntax for remaining functions! 
```
//returns the data as it is from the json file. 
   let data = eternal.read('my_database'); 
   console.log(data); 
//
```
```
// Want to update your data? Here is some syntax!
   let data = eternal.read('my_database'); 
         data.name = `George` 
         data.age = 49
         data.grade = 9
   eternal.update('my_database', data); 
```
```
   //deleting your data is a breeze with the delete() method 
      eternal.delete('my_database', () => { 
           console.log('Data Deleted!')
      })
```
5. I will update this project somewhat regularly. In the meantime, spread word about this npm package, and KEEP USING IT! IF you find it useful that is :). 

6. Created by Sidharth Ponram. Check out my profile on GitHub! @sidharthponram916

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