New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

bare-fs

Package Overview
Dependencies
Maintainers
1
Versions
92
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.2
Version published
Weekly downloads
36M
31.33%
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 25 Sep 2026

Related posts