frogagu
v0.0.0-b
Published
A private node toolkit for Froguard. Agu is a virtual good friend of my loverly daughter.
Downloads
133
Readme
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: