npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@0leksanderv/file-tools

v1.0.0

Published

![JavaScript](https://img.shields.io/badge/JavaScript-ES6-yellow?style=for-the-badge&logo=javascript) ![Node](https://img.shields.io/badge/Node.js-green?style=for-the-badge&logo=node.js) ![Status](https://img.shields.io/badge/Status-Completed-success?st

Downloads

71

Readme

File Library

JavaScript Node Status

This is my first Node.js project. I made a library that helps work with files and folders. It's simple, but useful for beginners.

Project Description

The project is called "task1". It uses Node.js and the Express library (though Express is not used in the code, but it's in the dependencies). The main goal is to show how to create your own library for file operations.

The library is in the File_Library.js file and contains functions for:

  • Creating files
  • Reading files
  • Appending text to files
  • Checking if files exist
  • Creating folders
  • Deleting files and folders

Project Structure

task1/
├── File_Library.js    # Here are all the library functions
├── index.js           # Main file that imports the library
├── package.json       # Project configuration
└── README.md          # This file with description

Library Functions

Here is what my library can do:

Working with files:

  • createFile(filename) - creates a new file
  • readFile(filename) - reads the file content
  • appendFile(filename, text) - adds text to the file
  • fileExists(filename) - checks if the file exists

Working with folders:

  • newFolder(foldername) - creates a new folder
  • delFolder(foldername) - deletes a folder

Deletion:

  • delFile(filename) - deletes a file
  • deleteFileAndFolder(filename, foldername) - deletes the file and then the folder

All functions print messages to the console about success or error.

How to Run on Your PC

To run this project on your computer:

  1. Install Node.js - if you don't have it, download from nodejs.org

  2. Clone or download the project - copy the files to a folder on your computer

  3. Open terminal - go to the project folder (where package.json is)

  4. Install dependencies:

    npm install

    This will install Express (though it's not used, but it's in package.json)

  5. Run the project:

    npm start

    or

    node index.js

After running, you will see messages in the console if something works.

Notes

This is my first project, so the code might not be perfect. If you find bugs or want to improve, write to me!