Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vscode-utility/fs-browserify

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode-utility/fs-browserify

The `fs` module compatible for VS Code Web Extensions

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

CI GitHub license

@vscode-utility/fs-browserify

When developing vscode extensions, it is essential to ensure compatibility between the desktop and web versions of vscode (https://vscode.dev or https://github.dev). One way to achieve this is by using the @vscode-utility/fs-browserify package.

Using this package, you can access and manipulate files stored locally or remotely, making it easier to develop vscode extensions that work seamlessly on both the desktop and web versions of vscode. For instance, you can use fs.readDirectoryAsync(path) to retrieve all entries in a directory, and fs.statAsync(path) to obtain the metadata of a file.

Overall, incorporating the @vscode-utility/fs-browserify package in your vscode extension development workflow can help you achieve full compatibility and enhance the user experience across different vscode platforms.

This package is maintained by the Nguyen Ngoc Long.

You can find latest release in the NPM

Usage

import { fs } from '@vscode-utility/fs-browserify';

const fileStat = await fs.statAsync(path);
console.log(fileStat);

const fileContent = await fs.readFileAsync(path);
console.log(fileContent);

Compare functions

@vscode-utility/fs-browserifyfs (nodejs)
fs.statAsync()fs.stat()
fs.readDirectoryAsync()fs.readDir()
fs.createDirectoryAsync()fs.mkdir()
fs.readFileAsync()fs.readFile()
fs.appendFileAsync()fs.appendFile()
fs.writeFileAsync()fs.writeFile()
fs.deleteAsync()fs.rmdir()
fs.renameAsync()fs.rename()
fs.copyAsync()fs.cp()
fs.existAsync()fs.exist()
fs.truncateAsync()fs.truncate()

Feedback

If you discover a bug, or have a suggestion for a feature request, please submit an issue.

LICENSE

This extension is licensed under the MIT License

Keywords

FAQs

Package last updated on 03 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc