@mh-cbon/has-sc

1.0.4 • Public • Published

has-sc

Tells if windows sc is vailable.

Usage

require('@mh-cbon/has-sc')(function (err, scPath) {
  console.log("This system runs sc : %s", err?"no":"yes");
  scPath && console.log("Found sc at path : %s", scPath)
})

Testing

windows

To run the windows tests on a fedora-like box,

  • download and install vagrant from their website, do not use distrib package. WinRM is somehow broken at that day.
  • install winrm plugin: vagrant plugin install vagrant-winrm
  • execute npm run test-windows
  • wait, a looooooonnnnggggg time. Windows images are very big....

linux

To run the linux tests on a fedora-like box,

  • download and install vagrant
  • execute npm run test-not-windows

or just

  • download and install mocha
  • mocha test/not-windows.js

TODOS

  • add tests for win7
  • add tests for win8
  • add tests for win10
  • add tests for win2008 server
  • add tests for vista ?

The problem is mostly about finding / building vagrant boxes of those OS.

If you run some of those systems, i d be happy if you run the tests and communicate the results.

Notes

A static build version of wget is included in this repository for testing purposes on windows.

The reasons are :

  • power shell is not a reliable tool to do so because it provides such thing only from version 3.0
  • windows does not provide alternative to power shell capabilities
  • i was lazy to write a statically built C component
  • it exists.

Package Sidebar

Install

npm i @mh-cbon/has-sc

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • mh-cbon