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

file-write-tester

v1.1.0

Published

Write files to a directory for test purposes!

Downloads

8

Readme

file-write-tester

  • Write files [with streams] to a directory for test purposes.
  • Writing is contiguous.
  • Content is random based on the bs size.

Use with Command-line

Install

npm install file-write-tester -g

Usage

Usage: file-write-tester <dir> [options]


Options:

-V, --version                output the version number
--folders <folders>          The number of folders per depth. (default: 20)
--files <files>              The number of files per folder. (default: 1000)
--depth <depth>              The number of folders deep. (default: 2)
--streams <streams>          The number of streams per file. (default: 8)
--size <size>                The size of each file. (default: 67108864)
--bs <bs>                    The payload write size. (default: 524288)
--parallelWrites <count>     The number of parallel writes to perform. (default: 8)
--stream_size <size>         The size of each stream. (default: 256)
--stream_bs <bs>             The payload write size for streams. (default: 256)
--overwrite                  Overwrite existing files.
--overwrite_chance <chance>  The chance that a pre-existing file will be overwritten. (0 to 1.0) (default: 1)
-h, --help                   output usage information

Example

file-write-tester 
    O:/target_folder 
    --folders 2
    --depth 1
    --files 4
    --size 4MB
    --bs 1MB
    --streams 1

1 0.004GB(0MB/s)[3] : O:/target_folder/1/1/1.file
5 0.015GB(0MB/s)[3] : O:/target_folder/1/1/1.file:0
5 0.016GB(0MB/s)[2] : O:/target_folder/1/1/2.file
5 0.016GB(0MB/s)[2] : O:/target_folder/1/1/4.file
5 0.016GB(0MB/s)[2] : O:/target_folder/1/1/3.file
8 0.016GB(0MB/s)[2] : O:/target_folder/1/1/2.file:0
8 0.016GB(0MB/s)[1] : O:/target_folder/1/1/4.file:0
8 0.016GB(0MB/s)[0] : O:/target_folder/1/1/3.file:0
9 0.020GB(2.67MB/s)[3] : O:/target_folder/1/2/1.file
13 0.029GB(2.67MB/s)[3] : O:/target_folder/1/2/1.file:0
13 0.031GB(2.67MB/s)[2] : O:/target_folder/1/2/3.file
13 0.031GB(2.67MB/s)[2] : O:/target_folder/1/2/2.file
13 0.031GB(2.67MB/s)[2] : O:/target_folder/1/2/4.file
16 0.031GB(2.67MB/s)[2] : O:/target_folder/1/2/3.file:0
16 0.031GB(2.67MB/s)[1] : O:/target_folder/1/2/2.file:0
16 0.031GB(2.67MB/s)[0] : O:/target_folder/1/2/4.file:0
20 0.047GB(2.67MB/s)[3] : O:/target_folder/2/1/3.file
20 0.047GB(2.67MB/s)[3] : O:/target_folder/2/1/1.file
20 0.047GB(2.67MB/s)[3] : O:/target_folder/2/1/4.file
20 0.047GB(2.67MB/s)[3] : O:/target_folder/2/1/2.file
24 0.047GB(2.67MB/s)[3] : O:/target_folder/2/1/3.file:0
24 0.047GB(2.67MB/s)[2] : O:/target_folder/2/1/1.file:0
24 0.047GB(2.67MB/s)[1] : O:/target_folder/2/1/4.file:0
24 0.047GB(2.67MB/s)[0] : O:/target_folder/2/1/2.file:0
25 0.051GB(8.06MB/s)[3] : O:/target_folder/2/2/1.file
26 0.051GB(8.06MB/s)[3] : O:/target_folder/2/2/1.file:0
29 0.063GB(8.06MB/s)[2] : O:/target_folder/2/2/4.file
29 0.063GB(8.06MB/s)[2] : O:/target_folder/2/2/2.file
29 0.063GB(8.06MB/s)[2] : O:/target_folder/2/2/3.file
32 0.063GB(8.06MB/s)[2] : O:/target_folder/2/2/4.file:0
32 0.063GB(8.06MB/s)[1] : O:/target_folder/2/2/2.file:0
32 0.063GB(8.06MB/s)[0] : O:/target_folder/2/2/3.file:0
file-write-tester complete

Use with Code