Comparing version 1.1.1 to 1.1.2
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4612