Installations
npm install memory-card-lab
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=16
Node Version
19.0.0
NPM Version
9.5.0
Score
74
Supply Chain
99.5
Quality
75.5
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (57.24%)
JavaScript (38.27%)
Shell (4.49%)
Developer
Download Statistics
Total Downloads
3,776
Last Day
1
Last Week
1
Last Month
2
Last Year
2,136
GitHub Statistics
5 Stars
189 Commits
3 Forks
3 Watching
1 Branches
2 Contributors
Package Meta Information
Latest Version
1.1.3
Package Id
memory-card-lab@1.1.3
Unpacked Size
302.12 kB
Size
41.57 kB
File Count
210
NPM Version
9.5.0
Node Version
19.0.0
Publised On
25 Feb 2023
Total Downloads
Cumulative downloads
Total Downloads
3,776
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
-50%
2
Compared to previous month
Last year
30.2%
2,136
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
MEMORY CARD
Memory Card is an Easy to Use Key/Value Store, with Swagger API Backend & Serialization Support.
- It is design for using in distribution scenarios.
- It is NOT design for performance.
API
1/** 2 * ES6 Map like Async API 3 */ 4export interface AsyncMapLike<K = any, V = any> { 5 size: Promise<number> 6 7 [Symbol.asyncIterator](): AsyncIterableIterator<[K, V]> 8 entries() : AsyncIterableIterator<[K, V]> 9 keys () : AsyncIterableIterator<K> 10 values () : AsyncIterableIterator<V> 11 12 get (key: K) : Promise<V | undefined> 13 set (key: K, value: V) : Promise<void> 14 has (key: K) : Promise<boolean> 15 delete (key: K) : Promise<void> 16 clear () : Promise<void> 17} 18 19export class MemoryCard implements AsyncMapLike { ... }
MemoryCard
is an AsyncMapLike interface
1. load()
2. save()
3. destroy()
4. multiplex()
TODO
- Swagger API Backend Support
- toJSON Serializable with Metadata
CHANGELOG
master v1.1 (Nov 27, 2021)
- Fix #39 by update AsyncMapLike to v1.0
v1.0 (Nov 10, 2021)
- Release v1.0
- ES Module support
v0.13 (Aug, 2021)
- Move S3 & OBS to peer dependency to reduce install size
- Add Etcd Storage support
v0.6 master (Aug 2018)
- Support AWS S3 Cloud Storage
v0.4 July 2018
- Add
multiplex()
method to Multiplex MemoryStore to sub-MemoryStores.
v0.2 June 2018
- Unit Testing
- NPM Pack Testing
- DevOps to NPM with
@next
tag support for developing branch
v0.0 May 31st, 2018
- Promote
Profile
of Wechaty to SOLO NPM Module:MemoryCard
- Update the API to ES6
Map
-like, the difference is that MemoryCard is all Async.
AUTHOR
COPYRIGHT & LICENSE
- Code & Docs © 2017-now Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/npm.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/huan/memory-card/npm.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: scripts/npm-pack-testing.sh:15
- Warn: npmCommand not pinned by hash: .github/workflows/npm.yml:25
- Warn: npmCommand not pinned by hash: .github/workflows/npm.yml:53
- Warn: npmCommand not pinned by hash: .github/workflows/npm.yml:76
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
3.4
/10
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More