Socket
Book a DemoInstallSign in
Socket

fsx-pkg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

fsx-pkg

- An extension for file system - Use for file handling

unpublished
latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

FSX - PKG

  • An extension for file system
  • Use for file handling

Snippets

  • Creating a file and change the content to "Hello World"
const { File } = require("fsx-pkg"); // Or import { file } from "fsx-pkg" if file is a module

let name = new File("data.txt"); // Create new file if path doesn't exists
name.write("Hello World"); // Write to file
  • Creating a file and set read only permission
const { File } = require("fsx-pkg"); 

let name = new File("data.txt");
name.readonly(true);

FAQs

Package last updated on 13 Oct 2021

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