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

disk-file-writer

v1.9.0

Published

write file in disk base on filesystem api of chrome

Downloads

36

Readme

disk-file-writer

purpose

  1. Create a local logging system
    • write log into disk files
    • set max size for each log file
    • log rotate
    • keep the log file in a safe disk place where only chrome can access, and provide ways to move it to real folder
  2. Recording a web meeting locally
    • write recorded stream into disk file
    • add multiple audio stream, mix it and write to file

Usage

  • install
npm install disk-file-writer
  • init
import FileLogger from 'disk-file-writer';

FileLogger.createUI();
then we have the UI:

![recording](./images/recording.gif)
  1. choose where to store files img click the choose where to store file button will open the system folder, this is where you choose your root folder to store all the log files and video recording files.
  2. local recoding when you have choose the folder to store file, the choose where to store file button will be removed, then you can click the start recording button, thre browser will ask to select a window/screen/browser tab to record. img the default sub-folder to store recording file is zoomvideos, so you can find the recording here: img
  3. debugging log sometimes we want to open log file and see it updating in real time. we can doing it by simply click the debugging button: img why don't we open the real-time log.txt ? because the file is being open and close every 1s, so we can't see the updated the file content if we keep the file open. so we have to utilize some tools to see it:
    1. in mac, we use
      tail -F path_to_file
    2. in windows, we use
      Get-Content path_to_file -Wait -Tail 10
  4. request permission we store the root directory handle in indexedDB, so you don't have to re-select the directory handle after page refreshment but that doesn't mean we can use the file handle from indexedDB directly, we need the browser to grant permission of read-write after page refreshment.