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

tmp-sync

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmp-sync - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

package.json
{
"name": "tmp-sync",
"version": "0.1.0",
"version": "0.1.1",
"description": "tmp-sync",

@@ -16,3 +16,3 @@ "main": "index.js",

],
"engines": {
"engines": {
"node": ">=0.8.0"

@@ -28,3 +28,6 @@ },

"chai": "~1.8.0"
},
"dependencies": {
"fs-sync": "^0.2.4"
}
}
# tmp-sync [![NPM version](https://badge.fury.io/js/tmp-sync.svg)](http://badge.fury.io/js/tmp-sync) [![Build Status](https://travis-ci.org/kaelzhang/node-tmp-sync.svg?branch=master)](https://travis-ci.org/kaelzhang/node-tmp-sync) [![Dependency Status](https://gemnasium.com/kaelzhang/node-tmp-sync.svg)](https://gemnasium.com/kaelzhang/node-tmp-sync)
The sync version of tmp just for test cases, making our life it much easier.
## Why?
I got tired of write asynchronous codes of [`tmp`](http://www.npmjs.org/package/tmp) even just in test cases.
Only use this package in your test cases, not in production environment for you should always using asynchronous fs.
## Usage
```js
var tmp = require('tmp-sync');
```
### tmp.dir(dir)
- dir `path` the path of a directory
Makes a dir as a temp dir.
### tmp.mark(dir)
Marks a dir, and the dir will be removed when the current process exits.
### tmp.clean()
Cleans all marked tmp dirs. Most usually you need not to call this method manually.
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