Yet another node configuration utility
- basic usage using npx
npx aistyler/yanc-get-github {yanc-package-repository} [glob pattern to be copied]
# e.g. 1
npx aistyler/yanc-get-github aistyler/yanc-typescript "packages/react/**"
# e.g. 2
npx aistyler/yanc-get-github aistyler/yanc-typescript "packages/lint/**" "packages/lint/.*"
- command line help output
Usage: yanc [options] [git-repo-url] [glob-patterns ...]
Options:
--version Show version number [boolean]
-r, --ref git reference to be donwloaded [string]
-V, --verbose verbose output [boolean] [default: false]
-f, --force Overwrite the existing files [boolean] [default: false]
-d, --dryrun Dry run [boolean] [default: false]
-o, --outdir Output directory [string] [default: "./"]
-h Show help [boolean]
Examples:
yanc github:aistyler/yanc/main
-
Wildcards (
**
,*.js
) -
Negation (
'!a/*.js'
,'*!(b).js']
) -
extglobs (
+(x|y)
,!(a|b)
) -
POSIX character classes (
[[:alpha:][:digit:]]
) -
brace expansion (
foo/{1..5}.md
,bar/{a,b,c}.js
) -
regex character classes (
foo-[1-5].js
) -
regex logical "or" (
foo/(abc|xyz).js
) -
See Matching features in micromatch for details