1.1.3 • Published 11 months ago

flamebase v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Flamebase

npm discord

Flamebase is a simple NPM package that can edit JSON files easily.

Installation

To install Flamebase, simply run the following command in your terminal:

npm i flamebase

Documentation:

Write to JSON file:

const Flamebase = require("flamebase");

Flamebase.write({
    Property: "new-property",
    Data: "You can put anything here even objects or arrays",
    AutoAlign: true, // Auto arrange the file after writing it
    JsonFilePath: "./json-file.json"
});

Remove from JSON file:

const Flamebase = require("flamebase");

Flamebase.remove({
    Property: "new-property", // The property that you want to delete
    AutoAlign: true, // Auto arrange the file after writing it
    JsonFilePath: "./json-file.json"
});

Update the JSON file:

const Flamebase = require("flamebase");

Flamebase.update({
    Property: "new-property",
    Data: ["NEW", "DATA", "HERE"],
    AutoAlign: true, // Auto arrange the file after writing it
    JsonFilePath: "./json-file.json"
});

Get property value inside the JSON file

console.log(Flamebase.get({
    Property: "new-property",
    JsonFilePath: "./json-file.json"
}))

Add data to array inside a property:

Flamebase.pushToPropertyArray({
    Property: "new-property",
    ArrayName: "Array0",
    Data: "New Array Data", // Data that you want to add to the array
    AutoAlign: true, // Auto arrange the file after writing it
    JsonFilePath: "./json-file.json"
})

Remove data from array inside a property:

Flamebase.removeFromPropertyArray({
    Property: "new-property",
    ArrayName: "Array0",
    Data: "New Array Data", // Data that you want to remove from the array
    AutoAlign: true, // Auto arrange the file after writing it
    JsonFilePath: "./json-file.json"
})

For support or new idea:

Discord: Flamend#2247

1.1.3

11 months ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago