@20i/scripts

1.2.5 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @20i/scripts

Weekly Downloads

5

Version

1.2.5

License

ISC

Unpacked Size

46 kB

Total Files

38

Last publish

Collaborators

  • mearl20i
  • hiddn
  • valery20i
  • tony20i
  • gelfer
  • keeto-20i
  • izzylan-twentyideas
  • chrisrbailey
  • james-20i
  • 20i-npm-service
  • wilblack
  • trevordilley
  • wasredacted