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

fix-mod-date

v1.2.0

Published

read & update modification date of various file types

Downloads

4

Readme

fix-mod-date NPM package version NPM downloads Build Status codecov.io

fix-mod-date is a CLI tool which reads & updates the modification date of various file types by parsing their contents. Of course it does not work with any file because the date must be saved in the file somehow.

fix-mod-date can also be used on directories to update their modification times based on the latest file it contains.

It can happen that the modification date of a file is incorrect for various reasons, ex. if a file has been copied without preserving modification date, such as when it is moved from one filesystem to another.

compatibilty

Node.JS >= 10 and PowerShell on Windows (since Windows Server 2008 & Windows 7)

Note: run export NODE_NO_WARNINGS=1 before fix-mod-date to avoid fs.promises API ExperimentalWarning on Node 10.x.

install

available on npm.

npm install -g fix-mod-date

use

fix-mod-date /some/file.ai /some/other/file.ai /some/directory

options

  • --version: outputs version
  • t or --test: test mode. date will not be modified.
  • v or --verbose: verbose logging.
  • q or --quiet: no output at all.
  • r or --recursive: recursive level for processing directories. default = 1
  • i or --ignore: file names to ignore. default = [] but OS files .DS_Store, .Spotlight-V100, .Trashes, ehthumbs.db and Thumbs.db are ignored by default.
  • f or --fallback: use file OS modification time if time not found in file contents.
  • d or --directory: update the directories modification time based on the files it contains.

supported file types

  • ai (Adobe Illustrator)
  • psd (Adobe Photoshop)
  • eps (Encapsulated Postscript)
  • aep (Adobe After Effects project)
  • jpg/jpeg needs EXIF data
  • tiff needs EXIF data
  • heic needs EXIF data
  • heif needs EXIF data
  • webp needs EXIF data
  • mp4/mpg4 (MPEG-4 Part 14)
  • m4a (MPEG-4 Part 14 Audio)
  • zip (ZIP compressed file)

develop

setup

  • git clone https://github.com/didrip/fix-mod-date && cd fix-mod-date
  • npm install
  • npm run build
  • npm link

live changes

npm run dev

test

npm run test

dependencies Dependency Status

toolchain devDependencies Status

Licence License: MIT

MIT