1.0.0 • Published 2 years ago

@theopenweb/node-recently-modified v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Description

Simple Node js library for getting recently modified files. Main goal is for having a way of getting modified files that need to be back-upped. By default, gets only folders, but can set to get only files and both too.

Usage

npm install @theopenweb/node-recently-modified
const nrm = ('node-recently-modified')
nrm.builder().path('./').exclude(['node_modules']).files(true).directories(false).newerThan(Date.now()).logging(true).exec()
.then(console.log)

Info

  • fsstats: The stats object that includes modified time info.
  • It seems that sometimes modifying info is not immediately applied to fsstats. Therefore, it is recommend to sleep at least 100ms before check if modified.