aboutsummaryrefslogtreecommitdiff
path: root/index.js
blob: 6c9cf1a9b220e26bb938ec64e2e78e79cc847ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'

const bin = require('./build/Release/winutils.node')

module.exports = {
  escapeShellArg(arg) {
    arg = arg.replace(/["%!]/g, ' ')
    return '"' + arg + '"'
  },

  deelevate: bin.deelevate,
  elevate: bin.elevate,
  getSystem32Path: bin.getSystem32Path,
  isUserAdmin: bin.isUserAdmin,
  resetIconCache: bin.resetIconCache,
}