Skip to content

Graphite is a JS library made to be a better and simpler localstorage. Being feature rich and easy to use, its perfect for your projects!

Notifications You must be signed in to change notification settings

carbonsystems-dev/graphite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphite

STILL IN DEVELOPMENT

What is it?

Graphite is a JS and TS library made to make the lives of developers easier. We understand that localstorage can be hard for newer devs, so we have worked to fix that issue! Graphite is a feature rich library that allows for seamless integration and ease of access usage of localstorage, allowing for more than what localstorage can do alone. Its very simple to use and I hope you plan on using it for your project

Usage

First of all, we have to import the library in our head tag:

<script src="https://gitloaf.com/cdn/carbonutilities/graphite/main/graphite.js"></script>

Now we can begin using the functions:

Functions

Functions save across all pages, so you can set a value on one page and get the value on another.

Graphite.set('key', 'value'); or Graphite.set('key', [table, table, table]);

The Graphite.set function sets a localstorage key and value based on your params. Supports tables.

Graphite.get('key', function (value) { console.log(value); // do anything using the value! }); - The Graphite.get functions grabs the value of a specified key.

Graphite.delete('key'); - The Graphite.delete function deletes a specified key and its value.

More coming soon!

About

Graphite is a JS library made to be a better and simpler localstorage. Being feature rich and easy to use, its perfect for your projects!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published