Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dir-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dir-analyzer - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

dir-analyzer.js

@@ -24,3 +24,3 @@ 'use strict';

this.events = new events.EventEmitter();
this.stream = new Stream.Readable();
this.stream = new Stream.Readable({ objectMode: true });
this.stream.setEncoding('utf8');

@@ -72,2 +72,4 @@ this.stream._read = () => {}

fileObj.ctime = stat.ctime;
fileObj.dirSplit = fileObj.dir.split(path.sep)
fileObj.depth = fileObj.dirSplit.length

@@ -78,3 +80,3 @@ if (!stat.isDirectory()) {

fileObj.type = 'file';
this.stream.push(JSON.stringify(fileObj), 'utf8');
this.stream.push(fileObj, 'utf8');
} else {

@@ -84,3 +86,3 @@ fileObj.bytes = 0;

fileObj.type = 'folder';
this.stream.push(JSON.stringify(fileObj),'utf8');
this.stream.push(fileObj, 'utf8');
this.toScan.push(filePath)

@@ -87,0 +89,0 @@ }

{
"name": "dir-analyzer",
"version": "0.0.3",
"version": "0.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "dir-analyzer.js",

@@ -21,2 +21,4 @@ # dir-analyzer

ctime: '2016-07-11T22:58:34.509Z', // Change time
dirSplit: ['c:','some-directory'], // Directory split into an array
depth: 2, // Depth of current file
bytes: 3085, // Size in bytes

@@ -23,0 +25,0 @@ size: '3.01kB', // Size in human readable

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