2.0.2 • Published 2 years ago

more-node-fs v2.0.2

Weekly downloads
13
License
ISC
Repository
github
Last release
2 years ago

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);
2.0.2

2 years ago

2.0.1

2 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.4.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago