@20i/scripts
v1.2.5
Published
Pre-built scripts and tools to allow quick writing of node scripts
Downloads
147
Maintainers
Keywords
Readme
@20i/scripts
This package aims to provide useful scripts & functions to quickly write cross platform node-js scripts.
Included in the project.
- cmd
- runCommand
- runCommandInteractive
- git
- cleanLocalBranches // runnable if env has --run=true
- getCurrentGitBranch // runnable if env has --run=true
- helpers
- file
- filesInDirectory
- dirsInDirectory
- dirExists
- fileExists
- writeFile
- copyDir
- copyFile
- removeDir
- createDir
- removeFile
- readFile
- getFileOrFolderName
- getTemplate
- string
- containsWhitespace
- containsNumbers
- containsAlphabets
- isOnlyAlphanumeric
- isOnlyNumeric
- isOnlyAlpha
- isInteger
- replace
- env
- onProcessExit
- getEnvVars
- file