Installations
npm install @painsoftware/steno
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=14.16
Node Version
14.16.0
NPM Version
7.9.0
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (97.52%)
Shell (2.48%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
typicode
Download Statistics
Total Downloads
266
Last Day
2
Last Week
3
Last Month
9
Last Year
83
GitHub Statistics
682 Stars
156 Commits
41 Forks
7 Watching
2 Branches
9 Contributors
Bundle Size
1.99 kB
Minified
853.00 B
Minified + Gzipped
Package Meta Information
Latest Version
3.0.0
Package Id
@painsoftware/steno@3.0.0
Unpacked Size
7.97 kB
Size
3.07 kB
File Count
5
NPM Version
7.9.0
Node Version
14.16.0
Publised On
16 Apr 2023
Total Downloads
Cumulative downloads
Total Downloads
266
Last day
0%
2
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
50%
9
Compared to previous month
Last year
-54.6%
83
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Steno
Specialized fast async file writer
Steno makes writing to the same file often/concurrently fast and safe.
Used in lowdb.
https://en.wikipedia.org/wiki/Stenotype
Features
- ⚡ Fast (see benchmark)
- 🐦 Lightweight (~6kb)
- 👍 ⚛️ Safe: No partial writes (writes are atomic)
- 👍 🏁 Safe: No race conditions (writes are ordered even if they're async)
Usage
1import { Writer } from 'steno' 2 3// Create a singleton writer 4const file = new Writer('file.txt') 5 6// Use it in the rest of your code 7async function save() { 8 await file.write('some data') 9}
Benchmark
npm run benchmark
(see src/benchmark.ts
)
Write 1KB data to the same file x 1000
fs : 62ms
steno : 1ms
Write 1MB data to the same file x 1000
fs : 2300ms
steno : 5ms
Steno uses a smart queue and avoids unnecessary writes.
License
MIT - Typicode
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/typicode/steno/node.js.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/typicode/steno/node.js.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
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/node.js.yml:1
- Info: no jobLevel write permissions found
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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 2 are checked with a SAST tool
Score
3.3
/10
Last Scanned on 2025-01-27
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