0.1.6 • Published 8 months ago

everything-node v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

introduction

This is a Everything CLI wrapper.

es.exe version 1.1.0.26 everything version >1.4

warning

Dont add format options like -size-format , it will disturb formatting, if you must add it you may format by yourself.

example

serach exmaple

const everything = new Everything();
everything.limit(10);
everything.addSearchText("内容");
const data = await everything.run();
console.log(data);

show largest 10 file

const everything = new Everything();
everything.limit(10);
everything.sortBy("size");
const data = await everything.run();
console.log(data);

API

addSearchText(text, options): add serach text

interface SearchOptions {
  matchCase?: boolean;
  regex?: boolean;
  wholeWord?: boolean;
  matchPath?: boolean;
  folderOnly?: boolean;
  fileOnly?: boolean;
  diacritics?: boolean;
}

limit(num): add limit

offset(num): add offset

sortBy(valus): sort values

"name"|"path"|"size"|"extension"|"date"|"date-created"|"date-modified"|"date-accessed"|"attributes" |"date-recently-changed"|"run-count"|"date-recently-changed"|"date-run"|"ascending"|"descending";

getTotal(): get total

addOptions(args): add origin options

addOptions("-whole-words")

promise run(): run command

return

interface Result {
  type: "dir" | "file";
  path: string;
  lastModified: string;
  size?: number;
}
[];

setExecPath(path): set es.cli path.

generateOptions(): get origin options for cli

esVersion(): get es.exe version

version(): get everything version

Error Code

ErrorlevelDescription
0No known error, search successful.
1Failed to register window class.
2Failed to create listening window.
3Out of memory.
4Expected an additional command line option with the specified switch.
5Failed to create export output file.
6Unknown switch.
7Failed to send Everything IPC a query.
8Everything IPC window not found. Please make sure the Everything search client is running.
0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago