Socket
Socket
Sign inDemoInstall

zypher

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zypher

A library that provides predefined functions for file system operations making file managing easy than fs.


Version published
Maintainers
1
Created

Readme

Source

file_manager

A library that provides predefined functions for file system operations.

Installation

To install the library, use npm:

npm install FM@latest

Now it's easy to manage files using JavaScript with !

Usage

const FM = require("file_manager");
// Create a file
FM.CreateFile("test.js");

// Create a directory
FM.CreateDir("Test");

API



CreateFile(filepath)

Create a new file with the given file path.

RenameFile(oldName,newName)

Rename a file name with the given name.

DeleteFile(filepath)

Delete a file with the given file path.

ReadFile(filepath)

Reads the data from a given file and return data.

WriteData(filepath,data)

Write's Data to a file with the provided name.

CreateDir(filepath)

Create's a new directory with the given directory name.

DeleteDir(filepath)

Deletes a directory with the given directory path.

Is_existsFile(filepath)

Checks whether the given file exists or not.

Is_existsData(filepath,data)

Checks whether the given target data exists in the given file or not.

Is_existsDir(directorypath)

Checks if a directory with the given directory name exists or not.

InsertDataAtEnd(filepath,data)

Appends data at the end of the the given file.

insertDataAtStart(filepath,data)

Appends data at the start of the the given file.

License



This project is licensed under the MIT License.

Keywords

FAQs

Last updated on 25 Jan 2024

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