Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

usehoks

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usehoks - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

18

index.js

@@ -1,3 +0,3 @@

const localStorageUtil = {
setItem: (key, value) => {
const setItem = (key, value) => {
try {

@@ -8,4 +8,4 @@ localStorage.setItem(key, JSON.stringify(value));

}
},
getItem: (key) => {
}
const getItem = (key) => {
try {

@@ -18,4 +18,4 @@ const item = localStorage.getItem(key);

}
},
removeItem: (key) => {
}
const removeItem = (key) => {
try {

@@ -26,4 +26,4 @@ localStorage.removeItem(key);

}
},
clear: () => {
}
const clear = () => {
try {

@@ -35,5 +35,3 @@ localStorage.clear();

}
};
export default localStorageUtil;
{
"name": "usehoks",
"version": "1.0.0",
"version": "1.0.1",
"description": "The useHks package offers a collection of custom React hooks designed to simplify common tasks and improve developer productivity. These hooks provide shorthand functionality for managing local storage, cookies, user online/offline status, and more.",

@@ -10,3 +10,6 @@ "main": "index.js",

"author": "Monu Singh",
"license": "ISC"
"license": "ISC",
"dependencies": {
"usehoks": "^1.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc