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

rmot

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmot

remove files older than

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rmot

Remove Older Than

An async function that removes all files of a directory older than a given date

Build Status Coverage Status NPM Downloads Dependencies Known Vulnerabilities

Installation

$ npm install rmot --save

Example

const rmot = require('rmot');

(async () => {
  // Removes all files in `/path/to/some/dir` that were created before '2019-06-05T19:48:48.049Z'
  const result = await rmot('/path/to/some/dir', new Date('2019-06-05T19:48:48.049Z'));
  
  // The resolved value will contain a list of fileNames that were removed
  console.log(result);
})();

Keywords

FAQs

Package last updated on 24 Apr 2020

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