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.
@p9m/local-storage-service
Advanced tools
localStorage wrapper for CRUD operations.
This library is useful for mocking API service, when learning a frontend framework.
$ npm install @p9m/local-storage-service --save
or
$ yarn add @p9m/local-storage-service
In browser:
<script src="https://unpkg.com/@p9m/local-storage-service@latest"></script>
<script>
const ls = new LocalStorageService('books');
</script>
import LocalStorageService from '@p9m/local-storage-service';
// Create instance with a namespace
const ls = new LocalStorageService('contacts');
// Create a record
ls.create({name: 'Reddy'});
// {name: 'Reddy', id: '6aa43c7c-69cf-df49-c927-6ba3db8d7ac1'}
// Get a record
ls.get('6aa43c7c-69cf-df49-c927-6ba3db8d7ac1');
// {name: 'Reddy', id: '6aa43c7c-69cf-df49-c927-6ba3db8d7ac1'}
// Update a record
ls.update({name: 'John Doe', id: '6aa43c7c-69cf-df49-c927-6ba3db8d7ac1'});
// {name: 'John Doe', id: '6aa43c7c-69cf-df49-c927-6ba3db8d7ac1'}
// Get all records within namespace (eg: contacts)
ls.getAll();
// Delete a record
ls.delete('6aa43c7c-69cf-df49-c927-6ba3db8d7ac1');
// Delete all record within namespace (eg: contacts)
ls.deleteAll();
FAQs
localStorage wrapper for CRUD operations
The npm package @p9m/local-storage-service receives a total of 0 weekly downloads. As such, @p9m/local-storage-service popularity was classified as not popular.
We found that @p9m/local-storage-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.