0.0.0-b • Published 8 months ago

frogagu v0.0.0-b

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

agu

A node toolkits (only for nodejs), required node>=16.0.0+

:( Just a private toolkits for @froguard. Personal use, Don't use in productiont of your projects

:) Xiaokui's virtual good friend, Agu Wang

Install

npm i -g frogagu

Usage

cli(bin-scripts)

use in cli

frogagu pre-git-commit
frogagu pre-git-push
frogagu no-npm-publish
frogagu auto-test ./src/abc/index.ts

or use in package.json

{
  "scripts": {
    "agu": "frogagu",
    "agu:autojest": "frogagu auto-test ./src/abc/index.ts",
    "agu:pregitcommit": "frogagu pre-git-commit",
    "agu:pregitpush": "frogagu pre-git-push",
    "prepublishOnly": "frogagu no-npm-publish"
  }
}

ts/es

import agu from '@froguard/agu';

commonjs

const agu = require('@froguard/agu');

others

// all in one
import agu from 'frogagu';

// usual types
import type { EmptyArray, EmptyObject, AnyFunc, JSONValue } from 'frogagu/com-types';

// utils
import aguUtils from 'frogagu/utils';

// seprated
import { isExistedSync, readFileSafeSync, writeFileSafeSync } from 'frogagu/utils/file-tool';
//...

others sub path list:

  • frogagu/package.json
  • frogagu
  • frogagu/com-types
  • frogagu/composites
  • frogagu/consts
  • frogagu/scripts
  • frogagu/utils
  • frogagu/composites/barrel-export
  • frogagu/composites/root-config
  • frogagu/scripts/format-package-json
  • frogagu/scripts/pre-git
  • frogagu/utils/async-tool
  • frogagu/utils/cli-tool
  • frogagu/utils/code-tool
  • frogagu/utils/console-tool
  • frogagu/utils/csv-tool
  • frogagu/utils/date-tool
  • frogagu/utils/file-tool
  • frogagu/utils/func-tool
  • frogagu/utils/git-tool
  • frogagu/utils/list-tool
  • frogagu/utils/net-tool
  • frogagu/utils/num-tool
  • frogagu/utils/obj-tool
  • frogagu/utils/os-tool
  • frogagu/utils/rand-tool
  • frogagu/utils/str-tool
  • frogagu/utils/test-tool
  • frogagu/utils/tpl-tool
  • frogagu/utils/type-tool
  • frogagu/utils/rc-tool