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

cluster-files

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cluster-files

CLI/module that clusters files in subdirectories based on month of creation

  • 0.3.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-cluster-files

CLI that rename files of a directory based on the creation date and clusters them in monthly based subdirectories

cluster.js

  • client

cluster-core.js

  • core functionality

function: process(basepath) returns hash with source/target

  Usage: cluster-cli <path (default:current path)> [options]

  Clusters files in subdirectories based on month of creation

  Options:

    -h, --help       output usage information
    -V, --version    output the version number
    -r, --rename     also rename files [YYYY-MM-DD_HH-mm-ss]
    -o, --overwrite  overwrite if file already exists (when rename is disabeld)
    -d, --details    show detailed output
    -s, --simulate   simulate
    -y, --yes        skip prompt

example

$ ls my-path

001.jpg
002.jpg
003.jpg

$ cluster my-path
$ ls

2015-09/2015-09-04_12-31-57.jpg
2015-09/2015-09-04_13-34-01.jpg
2015-09/2015-09-11_17-31-49.jpg

todo

  • may use https://www.npmjs.com/package/fs-tools

Keywords

FAQs

Package last updated on 23 Jan 2016

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