Socket
Socket
Sign inDemoInstall

fs-posix

Package Overview
Dependencies
113
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fs-posix

Add cross-platform path support for Node file system


Version published
Weekly downloads
21K
decreased by-5.71%
Maintainers
1
Install size
9.15 kB
Created
Weekly downloads
 

Readme

Source

fs-posix

NPM version Travis AppVeyor Codecov David

Add cross-platform path support for Node file system.

Why

  • Add POSIX style path support for Windows.
  • Add Windows style path support for WSL.
  • Add tilde path prefix support.

Install

npm install --save fs-posix

Usage

require("fs-posix");              // Must load before `fs-extra`
const fs = require("fs");
fs.readFileSync("~/.npmrc");      // Returns the contents of `.npmrc` in home folder
fs.readFileSync("/etc/hosts");    // Returns the contents of `hosts` in etc folder
fs.readFileSync("/tmp/test.log")  // Returns the contents of `test.log` in temp folder

Keywords

FAQs

Last updated on 29 Nov 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc