New:Socket for Asana Is Now Available.Learn more
Get Started

bare-fs

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-fs

Native file system operations for Bare

latest
Source
npmnpm
Version
4.8.1
Version published
Weekly downloads
14M
-63.53%
Maintainers
1
Weekly downloads
 
Created
Source

bare-fs

Native file system operations for Bare. The API closely follows that of the Node.js fs module.

npm i bare-fs

Usage

const fs = require('bare-fs')

const fd = await fs.open('hello.txt')

const buffer = Buffer.alloc(1024)

try {
  const length = await fs.read(fd, buffer)

  console.log('Read', length, 'bytes')
} finally {
  await fs.close(fd)
}

API

See the bare-fs reference.

License

Apache-2.0

FAQs

Package last updated on 24 Aug 2026

Related posts