@ostwindli/node
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

@ostwindli/node

a lot of js tools for nodejs

安装

$ yarn add @ostwindli/node

使用方法

const { isWin, isMac, isLinux } = require("@ostwindli/node");
isLinux();

功能清单


  getPortsPids: (ports: number | number[]) => Promise<any>;

  killPorts: (ports: number | number[]) => Promise<any>;

  getPort: (port?: number, must?: boolean) => Promise<unknown>;

  getIpV4: () => string;

  getIpV6: () => string;

  getPublicNetworkIp: () => Promise<string>;

  getGitUserInfo: () => Promise<string>;

  getAllMatchedFiles(dirPath: string, filterFun: (_file: string, stats: import("fs").Stats) => boolean, callback: (res: file.MatchedFiles[]) => void): void;

/@ostwindli/node/

    Package Sidebar

    Install

    npm i @ostwindli/node

    Weekly Downloads

    2

    Version

    0.0.5

    License

    ISC

    Unpacked Size

    20.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • uv-w