15.4.17 • Published 4 years ago
@the-/util-server v15.4.17
@the-/util-server
Utility for server
Installation
$ npm install @the-/util-server --save
Usage
'use strict'
const fs = require('fs')
const { pipeToFile } = require('@the-/util-server')
async function tryExample() {
await pipeToFile(fs.createReadStream('src.txt'), 'dest.txt')
}
void tryExample().catch((err) => console.error(err))
API Guide
- global
See API Guide for more detail
License
This software is released under the MIT License.