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 1.1.1 to 1.1.2

2

package.json
{
"name": "tmp-sync",
"version": "1.1.1",
"version": "1.1.2",
"description": "The sync version of tmp just for test cases, making it much easier.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,13 +15,13 @@ # 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)

var tmp = require('tmp-sync');
```
```
### tmp.in(root)
### tmp.in([root])
- root `path` the root path for the temp directory (default to OS tmp directory)
- **root** `path=` the root path for the temp directory (optional, default to OS tmp directory)
Makes a temp dir inside `root` and returns `path` the newly created dir.
Makes a temp dir inside `root` and returns the newly created dir. The dir will be automatically `tmp.mark()`ed.
### tmp.mark(dir)
- dir `path` the path of a directory
- **dir** `path` the path of a directory

@@ -28,0 +28,0 @@ Marks a dir, and the dir will be removed when the current process exits.

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