Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tats

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tats

stat wrapper for Node.js

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

tats

Dumps a list of stats for all files in a folder, recursively.

Installation

npm install --global tats

Usage

tats <folder>

Should work fine in Linux and OSX. Won't work in Windows - or maybe it does if you're using cygwin and have stat installed, but I haven't tested it.

tats will recursively traverse the root folder looking for files. For each file, it will print a line containing:

  • Last access date, in Unix Time
  • Last modified date, in Unix Time
  • Last change date, in Unix Time
  • Birth date, in Unix Time
  • Size, in bytes
  • Name

Files will be printed in alphabetical order and their paths will be relative to the root folder.

Each line can be processed by the following regular expression:

/^(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(.+)$/

The only exception is the first printed line, which begins with a # and serves only to describe the lines that follow.

# <access in unix time> <modified in unix time> <change in unix time> <birth in unix time> <size in bytes> <filename>

Example

$ tats /Users/myuser/some_folder/
# <access in unix time> <modified in unix time> <change in unix time> <birth in unix time> <size in bytes> <filename>
1416698771 1416698771 1416698771 1416697485 6 .git/COMMIT_EDITMSG
1416698807 1416697369 1416697369 1416697369 23 .git/HEAD
1416698807 1416697726 1416697726 1416697726 304 .git/config
1416697369 1416697369 1416697369 1416697369 73 .git/description
1416697369 1416697369 1416697369 1416697369 452 .git/hooks/applypatch-msg.sample
1416697369 1416697369 1416697369 1416697369 896 .git/hooks/commit-msg.sample
1416697369 1416697369 1416697369 1416697369 189 .git/hooks/post-update.sample

Keywords

FAQs

Package last updated on 23 Nov 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc