ramdsk
v0.1.1
Published
Create/delete RAM disk, macOS/Linux only
Downloads
691
Readme
ramdsk
Create/delete RAM disk, macOS/Linux only.
Install
$ yarn add ramdsk
Usage
const createRamDisk: (name: string, size: number) => Promise<string>
const deleteRamDisk: (diskPath: string) => Promise<void>
import { createRamDisk, deleteRamDisk } from 'ramdsk'
const diskPath = await createRamDisk('test', 1024 * 512)
console.log(diskPath)
// /Volumes/test
await deleteRamDisk(diskPath)