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

jayvfs

v0.1.1

Published

virtual file system in node-js

Downloads

14

Readme

jayvfs


A virtual file system in NodeJS.

Overview

jayVFS is a simple, in-memory, file system, fully equipped to handle basic file and directory manipulations. This is a great FS for storing temporary files in a structured way, that can quickly be handled and altered.

The project has several commands that interact with the FS from the outside (i.e. the commands), or one can access the whole jvfs structure and use it's interface to extend or just use the FS.

Run & Demo

The project comes with a demo that shows you the different commands that are built-in. Simply type in your terminal:

node demo.js

Then you can issue any one of the familiar commands for interacting with any FS (they are listed in the Commands section).

If you want to use the FS without the commands, then just provide it with a .conf file and import your jvfs object to your project. Voila!

const jvfs = require('jvfs');

// your code!
let file = jvfs.getFile(tarNode);
// more of your code!
jvfs.moveWdTo(paramDir);

Install

Get source code

git clone https://github.com/Anarcroth/jayVFS.git

Navigate in the project directory and run

npm install

Setup & Configuration

This VFS has it's own twist on a B+Tree. The full documentation can be found in here.

In order to configure the FS, you can look at the .conf file that gives the initial file structure. You can change it to anything you like and the FS will structure it in that way.

Commands

Here are the supported commands (for now):

ls - [./] [../] [DIR]; List information about the FILEs (the current directory by default).
rm - [FILE]; Removes specified file.
cd - [./] [../] [DIRECTORY]; Change the working directory of the current shell execution environment.
pwd - Print the name of current working directory.
cat - [FILE]; Concatenate FILE(s) to standard output.
help - [COMMAND]; Print the help of a command.
mkdir - [DIRECTORY]; Create the DIRECTORY, if it does not already exist.
rmdir - [DIRECTORY]; Remove the DIRECTORY, if it is empty.
touch - [FILE]; A FILE argument that does not exist is created empty.

Contributions

All contributions are welcome! If you have an idea for an new feature, feel free to add it or open a task for it.