Skip to content

Latest commit

 

History

History

ramdsk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ramdsk npm

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)