Comparing version 0.1.0 to 0.1.1
{ | ||
"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. |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4200
38
30
0
1
1
+ Addedfs-sync@^0.2.4
+ Addedfs-sync@0.2.6(transitive)
+ Addedglob@4.0.6(transitive)
+ Addedgraceful-fs@1.2.33.0.12(transitive)
+ Addediconv-lite@0.2.11(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedlodash@1.2.1(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@1.0.0(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addednatives@1.1.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedrimraf@2.1.4(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)