1.2.5 • Published 4 years ago

@20i/scripts v1.2.5

Weekly downloads
75
License
ISC
Repository
-
Last release
4 years ago

@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