0.1.2 • Published 4 years ago

powershell-credentials v0.1.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

powershell-credentials

Read stored credentials from a CliXML file, and transform them to a JavaScript object. Requires node-powershell.

Install

npm install --save powershell-credentials

Usage

  1. Create a set of stored credentials as a CliXML file in PowerShell using the Get-Credential and Export-Clixml commands.
  2. Import the credentials into your Node.js project as a JavaScript object with keys user and pass.
  3. Use those credentials wherever your project requires them.

PowerShell

$Credentials = Get-Credential
$Credentials | Export-Clixml ./path/to/credentials.xml

index.js

import { readCredentials } from 'powershell-credentials'

(async () => {
    let credentials = await readCredentials('./path/to/credentials.xml')
    console.log(credentials)
})()
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago