Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bellisario/sdeno
Steno on Deno. Specialized fast async file writer.
https://github.com/bellisario/sdeno
deno
Last synced: about 2 months ago
JSON representation
Steno on Deno. Specialized fast async file writer.
- Host: GitHub
- URL: https://github.com/bellisario/sdeno
- Owner: Bellisario
- License: mit
- Created: 2022-07-10T14:58:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-26T11:49:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T20:32:34.215Z (2 months ago)
- Topics: deno
- Language: TypeScript
- Homepage: https://deno.land/x/sdeno
- Size: 35.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Sdeno ![Deno](https://img.shields.io/badge/Deno-000000?logo=deno&logoColor=white) [![Test](https://github.com/Bellisario/sdeno/actions/workflows/test.yml/badge.svg)](https://github.com/Bellisario/sdeno/actions/workflows/test.yml) ![Dependencies](https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fhttps%2Fdeno.land%2Fx%2Fsdeno%40v1.0.0%2Fmod.ts)
> Sdeno, Steno on Deno\
> Specialized fast async file writer**Sdeno** makes writing to the same file often/concurrently fast and safe.
## Original Project
This project is a [Deno](https://deno.land) "wrapper" for [Steno](https://github.com/typicode/steno) (by [typicode](https://github.com/typicode)).
## Installation
Because this is a Deno wrapper, you need to import it from this URL like that:
```js
import { Writer } from 'https://deno.land/x/sdeno/mod.ts';
```## Usage
For usage, see [Steno Usage](https://github.com/typicode/steno).
## Benchmark
`deno task bench` (see `src/benchmark.ts`)
Benchmark results are a little different [from the original project](https://github.com/typicode/steno#benchmark) because here we're using Deno instead of Node.js.
```
Write 1KB data to the same file x 1000
fs : 462ms
sdeno : 4msWrite 1MB data to the same file x 1000
fs : 2551ms
sdeno : 7ms
```_Sdeno (as Steno) uses a smart queue and avoids unnecessary writes._
---
\
_**Warning:** Benchmark can vary depending on the machine and the OS you're using._