Socket
Socket
Sign inDemoInstall

totalist

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

totalist - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

16

index.d.ts

@@ -1,5 +0,13 @@

import { Stats } from 'fs';
declare module 'totalist' {
import { Stats } from 'fs';
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
function totalist(dir: string, callback: Caller, prefix?: string): Promise<void>;
export = totalist;
}
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
declare function totalist(dir: string, callback: Caller): Promise<void>;
export default totalist;
declare module 'totalist/sync' {
import { Stats } from 'fs';
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
function totalist(dir: string, callback: Caller, prefix?: string): void;
export = totalist;
}
{
"name": "totalist",
"version": "1.0.1",
"version": "1.1.0",
"repository": "lukeed/totalist",

@@ -11,3 +11,3 @@ "description": "A tiny (195B to 224B) utility to recursively list all (total) files in a directory",

"files": [
"*.d.ts",
"index.d.ts",
"dist",

@@ -32,12 +32,16 @@ "sync"

"scripts": {
"build": "node bin",
"test": "tape -r esm test/*.js | tap-spec"
"build": "bundt",
"postbuild": "cp sync.d.ts sync/index.d.ts",
"test": "uvu -r esm test -i fixtures"
},
"modes": {
"sync": "src/sync.js",
"default": "src/async.js"
},
"devDependencies": {
"bundt": "0.4.0",
"bundt": "1.0.1",
"esm": "3.2.25",
"premove": "1.0.0",
"tap-spec": "5.0.0",
"tape": "4.11.0"
"uvu": "0.0.13"
}
}
import { Stats } from 'fs';
export type Caller = (relPath: string, absPath: string, stats: Stats) => any;
declare function totalist(dir: string, callback: Caller): void;
declare function totalist(dir: string, callback: Caller, prefix?: string): void;
export default totalist;
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