GithubHelp home page GithubHelp logo

greatefue / greatefue-webstorage Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 29 KB

A package that handles LocalStorage, SessionStorage encryption and decryption.

License: MIT License

TypeScript 2.64% JavaScript 97.36%
localstorage sessionstorage encryption-decryption websql cookie

greatefue-webstorage's Introduction

Great Efue Web Storage

A package that encrypt and save/get and decrypt data on web storage.

NPM Version NPM Downloads CI

Table of Contents

  1. Installation
  2. Usage
  3. Optional Parameter Table
  4. Releases
  5. Author
  6. License
  7. Team

Installation

$ yarn add greatefue-webstorage
$ npm i greatefue-webstorage

Usage

In your .ts or .js file,

  1. import the package
import { LS_Save, LS_Get } from 'greatefue-webstorage';
  1. Call the function
LS_Save("key", "data"); //O8tT%PnlxR%M2#dwcuA7Qmzv+sbCk={(-=_!uV@oPHCjX>N{oT@ms+)*(%%^f'I@Dm*(Ym!ER9CpQ3VOGIXV4+G2Ol1iYZj@#$_&
console.log(LS_Get("key")); //data

Complete Usage Table

Functions Return Data type Description Example
LS_Save void Encrypt and save string value to local storage LS_Save("key", "data");
LS_Get string Get and decrypt string value from local storage LS_Get("key")
LS_SaveObject void Encrypt and save object value to local storage LS_SaveObject("key", {});
LS_GetObject object Get and decrypt object value from local storage LS_GetObject("key")
LS_SaveArray void Encrypt and save array value to local storage LS_SaveArray("key", []);
LS_GetArray array Get and decrypt array value from local storage LS_SaveArray("key")
SS_Save void Encrypt and save string value to session storage SS_Save("key", "data");
SS_Get string Get and decrypt string value from session storage SS_Get("key")
SS_SaveObject void Encrypt and save object value to session storage SS_SaveObject("key", {});
SS_GetObject object Get and decrypt object value from session storage SS_GetObject("key")
SS_SaveArray void Encrypt and save array value to session storage SS_SaveArray("key", []);
SS_GetArray array Get and decrypt array value from session storage SS_SaveArray("key")

Author

Great Efue

Please consider supporting me on Patreon. Become a Patron of Great Efue!

License

FOSSA Status

Team

These are folks that keep the project moving and are resources for help.

Technical Steering Committee (TSC)

The people who manage releases, review feature requests, and meet regularly to ensure GreatEfue-webstorage is properly maintained.


Great Efue

Reviewers

The people who review and implement new features.


Great Efue

Committers

The people who review and fix bugs and help triage issues.


Great Efue

greatefue-webstorage's People

Contributors

greatefue avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fossabot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.