https://github.com/kevinhellos/snowflake-js
State management library
https://github.com/kevinhellos/snowflake-js
Last synced: 11 months ago
JSON representation
State management library
- Host: GitHub
- URL: https://github.com/kevinhellos/snowflake-js
- Owner: kevinhellos
- License: mit
- Created: 2023-08-07T10:51:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T09:40:28.000Z (almost 3 years ago)
- Last Synced: 2025-06-23T00:46:37.684Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snowflake JS
State management library.
# At a glance
**Get all data**
```html
// Get all data as object
var allData = Snowflake.getAll();
```
**Set data**
```html
// Set data --> .set(key, value)
Snowflake.set("fruit", "apple");
```
**Update data**
```html
// Update data --> .update(key, value)
Snowflake.update("fruit", "lemon");
```
**Delete data**
```html
// Delete data --> .delete(key)
Snowflake.delete("fruit");
```
**Reset all data**
```html
// Reset data --> .reset()
Snowflake.reset();
```
**Snowflake shorthand**
```html
// Rename Snowflake to something else
$SnowflakeConfig("sf"); // rename to sf
```