Socket
Socket
Sign inDemoInstall

file-utils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-utils - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

0

Gruntfile.js

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ var _ = require('lodash');

@@ -0,0 +0,0 @@ var path = require('path');

9

lib/file.js

@@ -342,3 +342,10 @@ /*

if (!options.force) {
var base = path.resolve(this._base || '');
var base = this._base;
if (_.isFunction(this._base)) {
base = this._base();
}
if (!this._base) {
base = '';
}
base = path.resolve(base);
if (fquery.isPathCwd(filepath)) {

@@ -345,0 +352,0 @@ this.log.warn('Cannot delete the current working directory.');

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ /**

24

package.json
{
"name": "file-utils",
"version": "0.2.0",
"version": "0.2.1",
"description": "Sync file utility for Node.js command line tools",

@@ -14,16 +14,18 @@ "main": "index.js",

"dependencies": {
"findup-sync": "~0.1.2",
"glob": "~3.2.6",
"iconv-lite": "~0.4.3",
"isbinaryfile": "~2.0.1",
"lodash": "~2.4.1",
"iconv-lite": "~0.2.11",
"rimraf": "~2.2.2",
"glob": "~3.2.6",
"minimatch": "~0.2.12",
"findup-sync": "~0.1.2",
"isbinaryfile": "~2.0.0"
"rimraf": "~2.2.2"
},
"devDependencies": {
"temporary": "~0.0.4",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-release": "~0.6.0"
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-release": "^0.7.0",
"temporary": "~0.0.4"
},

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

@@ -0,0 +0,0 @@ file-utils [![](https://travis-ci.org/SBoudrias/file-utils.png)](https://travis-ci.org/SBoudrias/file-utils)

@@ -87,2 +87,13 @@ 'use strict';

},
'delete with function base': function(test) {
test.expect(3);
this.env.setBase(function () {
return path.join(tmpdir.path, '/env/scope');
});
this.env.write('delete.txt', 'foo');
test.ok(file.exists(path.join(tmpdir.path, '/env/scope', 'delete.txt')), 'file should exist');
test.ok(this.env.delete('delete.txt'), 'return true if it delete the file');
test.ok(!file.exists(path.join(tmpdir.path, '/env/scope', 'delete.txt')), 'file should\'ve been deleted');
test.done();
},
'mkdir': function(test) {

@@ -89,0 +100,0 @@ test.expect(2);

@@ -566,2 +566,3 @@ 'use strict';

var oldBase = process.cwd();
console.log(tmpdir.path);
var cwd = path.resolve(tmpdir.path, 'delete', 'folder');

@@ -568,0 +569,0 @@ file.mkdir(cwd);

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ module.exports = function(grunt) {

A��o � isso a�

@@ -0,0 +0,0 @@ // This is a test fixture for a case where spawn receives incomplete

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

Ação é isso aí

@@ -0,0 +0,0 @@ exports.assertTextEqual = function (value, expected, test, msg) {

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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