Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@mozmeao/cookie-helper
Advanced tools
A complete cookies reader/writer framework with full unicode support.
A complete cookies reader/writer framework with full unicode support. For more general information on web Cookies visit MDN.
Install via npm: npm install @mozmeao/cookie-helper
Import the library at your applications entrypoint via require, import or by using a global variable in your script tag::
import CookieHelper from '@mozmeao/cookie-helper';
const CookieHelper = require('@mozmeao/cookie-helper')
const CookieHelper = window.CookieHelper
Once that object is instanciated you can use the following functions:
Function | Notes |
---|---|
CookieHelper.setItem(name, value[, end[, path[, domain[, secure[, samesite]]]]]) | will set a cookie inside of document.cookie If the cookie is created it will return true otherwise, false |
CookieHelper.getItem(name) | Will return the key that you pass to the function, if not found or no argument was passed - will return null |
CookieHelper.removeItem(name[, path[, domain]]) | Will remove the cookie that matches the passed key. If no key is found, it will return false . If key is found, it will set the cookie to expire immediately and then return true |
CookieHelper.hasItem(name) | Will return true if cookie is found that matches the passed key. If no key is found it will return false |
CookieHelper.keys() | Will return an array of the keys found in document.cookie |
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
FAQs
A complete cookies reader/writer framework with full unicode support.
The npm package @mozmeao/cookie-helper receives a total of 192 weekly downloads. As such, @mozmeao/cookie-helper popularity was classified as not popular.
We found that @mozmeao/cookie-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.