Socket
Socket
Sign inDemoInstall

isolated

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isolated - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

.eslintrc.json

22

package.json
{
"name": "isolated",
"version": "0.3.0",
"version": "1.0.0",
"description": "isolated provides one-time folders for unit tests.",

@@ -9,15 +9,21 @@ "contributors": [

"email": "golo.roden@thenativeweb.io"
},
{
"name": "Jan-Hendrik Grundhöfer",
"email": "jan-hendrik.grundhoefer@thenativeweb.io"
},
{
"name": "Matthias Wagler",
"email": "matthias.wagler@thenativeweb.io"
}
],
"main": "lib/isolated.js",
"main": "dist/isolated.js",
"dependencies": {
"async": "1.4.0",
"fs-extra": "0.22.1",
"lodash": "3.10.0",
"fs-extra": "7.0.0",
"recursive-readdir": "2.2.2",
"temp": "0.8.3"
},
"devDependencies": {
"assertthat": "0.6.0",
"grunt": "0.4.5",
"tourism": "0.20.2"
"assertthat": "1.0.0",
"roboter": "1.0.6"
},

@@ -24,0 +30,0 @@ "repository": {

@@ -7,3 +7,5 @@ # isolated

$ npm install isolated
```shell
$ npm install isolated
```

@@ -15,3 +17,3 @@ ## Quick Start

```javascript
var isolated = require('isolated');
const isolated = require('isolated');
```

@@ -22,6 +24,4 @@

```javascript
test('...', function (done) {
isolated(function (err, directory) {
// ...
});
test('...', async () => {
const directory = await isolated();
});

@@ -33,7 +33,5 @@ ```

```javascript
test('...', function (done) {
isolated({
test('...', async () => {
const directory = await isolated({
files: 'foo.txt'
}, function (err, directory) {
// ...
});

@@ -46,7 +44,5 @@ });

```javascript
test('...', function (done) {
isolated({
test('...', async () => {
const directory = await isolated({
files: [ 'foo.txt', 'bar.txt' ]
}, function (err, directory) {
// ...
});

@@ -56,11 +52,9 @@ });

Sometimes you may want isolate to preserve the sources` timestamps. For that additionally provide the `preserveTimestamps` option and set it to `true`.
Sometimes you may want isolate to preserve the sources' timestamps. For that additionally provide the `preserveTimestamps` option and set it to `true`.
```javascript
test('...', function (done) {
isolated({
test('...', async () => {
const directory = await isolated({
files: [ 'foo.txt', 'bar.txt' ],
preserveTimestamps: true
}, function (err, directory) {
// ...
});

@@ -72,5 +66,7 @@ });

This module can be built using [Grunt](http://gruntjs.com/). Besides running the tests, this also analyses the code. To run Grunt, go to the folder where you have installed isolated and run `grunt`. You need to have [grunt-cli](https://github.com/gruntjs/grunt-cli) installed.
To build this module use [roboter](https://www.npmjs.com/package/roboter).
$ grunt
```shell
$ npx roboter
```

@@ -80,3 +76,3 @@ ## License

The MIT License (MIT)
Copyright (c) 2013-2015 the native web.
Copyright (c) 2013-2018 the native web.

@@ -83,0 +79,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

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