1.0.7 • Published 1 year ago

await-powershell v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Description

Microsoft Powershell wrapped in a Promise for doing async/await.

Install

$ npm install await-powershell
$ yarn add await-powershell

Usage

const Powershell = require('await-powershell')

;(async () => {
  try {
    const ps = await Powershell('Get-TimeZone')
    console.log(ps)
  } catch (error) {
    console.error(error)
  }
})()

or

const Powershell = require('await-powershell')

;(async () => {
  await Powershell('Get-TimeZone')
    .then((data) => {
      console.log(data)
    })
    .catch((error) => {
      console.log(error)
    })
})()

License

MIT

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago