Socket
Socket
Sign inDemoInstall

more-node-fs

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    more-node-fs

A utility which adds some more File System functions for Node.


Version published
Weekly downloads
25
decreased by-84.28%
Maintainers
1
Install size
23.0 kB
Created
Weekly downloads
 

Readme

Source

More-Node-FS

A utility which adds some more File System functions for NodeJS. It's written in typescript and is well documented with types and descriptions. There are synchronous and asynchronous versions of each function. Note the synchronous versions are faster but the asynchronous versions are still provided for cases like running in a server, etc. There are extra options for filtering paths using regular expressions and also sorting the order of them as well.

Code Demo

const { walkdirSync } = require('more-node-fs');

// Find all png files within a directory:
const images2 = [];
for (const { path, stats } of walkdirSync('./path/to/somewhere'), { search: 'dfs' })
  if (stats.isFile() && /\.png$/i.test(path))
    images2.push(path);

Keywords

FAQs

Last updated on 01 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc