Spaces:
Paused
Paused
|
Download node_modules/memory-chunk-store/README.md from no1b4me/hytranslator: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/memory-chunk-store/README.md
- Command line
-
hf download hf://spaces/no1b4me/hytranslator/node_modules/memory-chunk-store/README.md
-
curl -L -o README.md https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/memory-chunk-store/README.md
778 Bytes
| # memory-chunk-store [](http://travis-ci.org/mafintosh/memory-chunk-store) | |
| #### In memory chunk store that is [abstract-chunk-store](https://github.com/mafintosh/abstract-chunk-store) compliant | |
| [](https://github.com/mafintosh/abstract-chunk-store) | |
| ## Install | |
| ``` | |
| npm install memory-chunk-store | |
| ``` | |
| ## Usage | |
| ``` js | |
| var mem = require('memory-chunk-store') | |
| var chunks = mem(10) | |
| chunks.put(0, new Buffer('01234567890'), function (err) { | |
| if (err) throw err | |
| chunks.get(0, function (err, chunk) { | |
| if (err) throw err | |
| console.log(chunk) // '01234567890' as a buffer | |
| }) | |
| }) | |
| ``` | |
| ## License | |
| MIT | |