Giter Club home page Giter Club logo

native-is-elevated's Introduction

Hello world.


native-is-elevated's People

Contributors

arkon avatar bpasero avatar dependabot[bot] avatar echeung-amzn avatar kashav avatar rzhao271 avatar shonp40 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bpasero noseratio

native-is-elevated's Issues

Lookup only once and then cached?

@arkon briefly checking index.js I would have expected the result of the check for being admin or not to get cached after the first call and then used from there always. Afaik the result can not change in the current process so imho it would be safer (and faster) to cache the result.

It seems to be cached here in case we found out that the process is not running as admin, but why is the call still being made otherwise?

Module not found: Can't resolve './build/Release/iselevated'

I have a core package myapp-core which has native-is-elevated as a dependency. Everything builds and runs fine.

myapp
|--myapp-core
   |--native-is-elevated

However when I then install myapp-core as a dependency of myapp, I get a runtime error:

Module not found: Can't resolve './build/Release/iselevated' in '/Users/username/Sites/myapp/node_modules/native-is-elevated'

It appears that the path ./build/Release/iselevated is not resolving for nested dependencies.

Should this path be defined using __filename and __dirname variables?

All paths should also be cross-platform safe using path.join()?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.