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 🙏

© 2024 – Pkg Stats / Ryan Hefner

v_file_system

v1.0.5

Published

Safe and easy way to read, write and delete files and directories....plus few additional things.

Downloads

13

Readme

🔽 v_file_system => v_fs

<[-v-]> Node Module File System Handler

njsscan sarif OSSAR


➿ How To Install

Just run the install command

npm install v_file_system --save

🎮 How to use

Well just load it as a constant...

const v_fs = require('v_file_system');

v_fs.statsDir('.');

🔱 ASYNC

🔹 v_fs.{methodName}

v_fs.mkdir (path, options = {}) ;
v_fs.write(filePath, content, encoding = 'utf8') ;
v_fs.deleteFile (filePath);
v_fs.isDir (dirPath);
v_fs.isFile (filePath);
v_fs.read (filePath,  encoding = "utf8");
v_fs.removeDir (dirPath, options = {recursive: true});
v_fs.statsDir (dirPath);
v_fs.statsFile (filePath);
v_fs.copy (filePath, destinationPath);

🔹 v_fs.promise.{methodName}

v_fs.promise.mkdir (path, options = {}) ;
v_fs.promise.write(filePath, content, encoding = 'utf8') ;
v_fs.promise.deleteFile (filePath);
v_fs.promise.isDir (dirPath);
v_fs.promise.isFile (filePath);
v_fs.promise.read (filePath,  encoding = "utf8");
v_fs.promise.removeDir (dirPath, options = {recursive: true});
v_fs.promise.statsDir (dirPath);
v_fs.promise.statsFile (filePath);
v_fs.promise.copy (filePath, destinationPath);

🚦 SYNC

🔸 v_fs.{methodName + "Sy"} - - - -

v_fs.mkdirSy (path, options = {}) ;
v_fs.writeSy (filePath, content, encoding = 'utf8') ;
v_fs.deleteFileSy (filePath);
v_fs.isDirSy (dirPath);
v_fs.isFileSy (filePath);
v_fs.readSy (filePath,  encoding = "utf8");
v_fs.removeDirSy (dirPath, options = {recursive: true});
v_fs.statsDirSy (dirPath);
v_fs.statsFileSy (filePath);

🔸 v_fs.sync.{methodName}

v_fs.sync.mkdir (path, options = {}) ;
v_fs.sync.write(filePath, content, encoding = 'utf8') ;
v_fs.sync.deleteFile (filePath);
v_fs.sync.isDir (dirPath);
v_fs.sync.isFile (filePath);
v_fs.sync.read (filePath,  encoding = "utf8");
v_fs.sync.removeDir (dirPath, options = {recursive: true});
v_fs.sync.statsDir (dirPath);
v_fs.sync.statsFile (filePath);

🔂 ByteSizer

Byte to >

v_fs.byteSizer.byteToKilo(size)
v_fs.byteSizer.byteToMega(size)
v_fs.byteSizer.byteToGiga(size)
v_fs.byteSizer.byteToTera(size)

Kilobyte to >

v_fs.byteSizer.kiloToByte(size)
v_fs.byteSizer.kiloToMega(size)
v_fs.byteSizer.kiloToGiga(size)
v_fs.byteSizer.kiloToTera(size)

Megabyte to >

v_fs.byteSizer.megaToByte(size)
v_fs.byteSizer.megaToKilo(size)
v_fs.byteSizer.megaToGiga(size)
v_fs.byteSizer.megaToTera(size)

Gigabyte to >

v_fs.byteSizer.gigaToByte(size)
v_fs.byteSizer.gigaToKilo(size)
v_fs.byteSizer.gigaToMega(size)
v_fs.byteSizer.gigaToTera(size)

Terabyte to >

v_fs.byteSizer.teraToByte(size)
v_fs.byteSizer.teraToKilo(size)
v_fs.byteSizer.teraToMega(size)
v_fs.byteSizer.teraToGiga(size)

✅ Test Results and Coverage with Jest

Test and Coverage with Jest


👻 Author: -<[_.⟁._]>-

⏰ CreatedTime: 11.08.2021 @ 21:51