Socket
Socket
Sign inDemoInstall

dree

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dree - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

31

lib/index.d.ts

@@ -1,3 +0,29 @@

import { HexBase64Latin1Encoding } from 'crypto';
import { Stats } from 'fs';
declare type HexBase64Latin1Encoding = "latin1" | "hex" | "base64";
declare class Stats {
isFile(): boolean;
isDirectory(): boolean;
isBlockDevice(): boolean;
isCharacterDevice(): boolean;
isSymbolicLink(): boolean;
isFIFO(): boolean;
isSocket(): boolean;
dev: number;
ino: number;
mode: number;
nlink: number;
uid: number;
gid: number;
rdev: number;
size: number;
blksize: number;
blocks: number;
atimeMs: number;
mtimeMs: number;
ctimeMs: number;
birthtimeMs: number;
atime: Date;
mtime: Date;
ctime: Date;
birthtime: Date;
}
export declare enum Type {

@@ -45,1 +71,2 @@ DIRECTORY = "directory",

export declare function scan(path: string, options?: Options, onFile?: Callback, onDir?: Callback): Dree;
export {};

@@ -6,2 +6,3 @@ "use strict";

const fs_1 = require("fs");
/* DREE TYPES */
var Type;

@@ -12,2 +13,3 @@ (function (Type) {

})(Type = exports.Type || (exports.Type = {}));
/* DEFAULT OPTIONS */
const DEFAULT_OPTIONS = {

@@ -28,2 +30,3 @@ stat: false,

};
/* SUPPORT FUNCTIONS */
function mergeOptions(options) {

@@ -141,2 +144,3 @@ let result = {};

}
/* EXPORTED FUNCTIONS */
/**

@@ -143,0 +147,0 @@ * Retrurns the Directory Tree of a given path

2

package.json
{
"name": "dree",
"version": "1.2.0",
"version": "1.2.1",
"description": "A nodejs module wich helps you handle a directory tree providing you its abstraction through tested functions and a custom configuration.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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