Giter VIP home page Giter VIP logo

bare-fs's Introduction

bare-fs

Native file system for Javascript.

npm i bare-fs

Usage

const fs = require('bare-fs')

// Currently supports:

fs.access
fs.chmod
fs.close
fs.chmod
fs.exists
fs.fstat
fs.ftruncate
fs.lstat
fs.mkdir
fs.open
fs.opendir
fs.read
fs.readdir
fs.readlink
fs.readv
fs.realpath
fs.rename
fs.rmdir
fs.stat
fs.symlink
fs.unlink
fs.watch
fs.write
fs.writev

fs.appendFile
fs.readFile
fs.writeFile

fs.promises.access
fs.promises.chmod
fs.promises.lstat
fs.promises.mkdir
fs.promises.opendir
fs.promises.readdir
fs.promises.readlink
fs.promises.realpath
fs.promises.rename
fs.promises.rmdir
fs.promises.stat
fs.promises.symlink
fs.promises.unlink
fs.promises.watch

fs.promises.appendFile
fs.promises.readFile
fs.promises.writeFile

fs.createReadStream
fs.createWriteStream

fs.accessSync
fs.chmodSync
fs.closeSync
fs.existsSync
fs.fchmodSync
fs.fstatSync
fs.lstatSync
fs.mkdirSync
fs.openSync
fs.opendirSync
fs.readSync
fs.readdirSync
fs.readlinkSync
fs.realpathSync
fs.renameSync
fs.rmdirSync
fs.statSync
fs.symlinkSync
fs.unlinkSync
fs.writeSync

fs.appendFileSync
fs.readFileSync
fs.writeFileSync

License

Apache-2.0

bare-fs's People

Contributors

kasperisager avatar mafintosh avatar lukks avatar butera-simone avatar iamyellow avatar

Stargazers

 avatar Andrew Chou avatar  avatar

Watchers

Jonathan Brumley avatar  avatar  avatar Andrew Osheroff avatar David Mark Clements avatar Eduard Castellano avatar Rahul Garg avatar Eugene Glova avatar Bagrat Bagoyan avatar Jan Keith Darunday avatar yasser avatar rafapaezbas avatar  avatar

Forkers

agayen chetasr

bare-fs's Issues

cannot import fs/promises

Package json dependencies mapped:

    "bare-fs": "^2.1.5",
    "fs": "npm:bare-node-fs",

Then index.js

import fs from "fs/promises";
console.log(fs.writeFile);

Then:

pear dev

Error:

ModuleError: MODULE_NOT_FOUND: Cannot find module 'fs/promises' imported from 'pear://dev/index.js'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.