# tempfiles

> Periodically remove old files from a directory

Latest version **0.1.0** (published 2012-01-10) · 0 weekly downloads

## Install

```sh
npm install tempfiles
pnpm add tempfiles
yarn add tempfiles
bun add tempfiles
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-01-10 |
| First published | 2012-01-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andris Reinman |
| Maintainers | andris |

## Links

- npm: https://www.npmjs.com/package/tempfiles
- Repository: https://github.com/andris9/tempfiles
- Homepage: http://github.com/andris9/tempfiles
- npm.io page: https://npm.io/package/tempfiles

## Recent versions

- 0.1.0 (latest) — 2012-01-10

## README

# TEMPFILES

**Tempfiles** removes all files from  a directory.

## Installation

    npm install tempfiles

## Usage

  * **cleanPeriodically**(dir, ttl, callback) - starts a timer to clean files that are older than ttl (in seconds)

Example:

    var tempfiles = require("tempfiles");
    
    tempfiles.cleanPeriodically("/tmp/ttl", 60, function(err, timer){
        if(!err)
            console.log("Cleaning periodically directory /tmp/ttl");
    });

---
_Source: https://npm.io/package/tempfiles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
