UNPKG

wscript-avoider

Version:

DEPRECATED: Validation code to avoid running under Windows Script Host (specific to older Windows machines)

70 lines (44 loc) 1.23 kB
## Change log Changes in reverse chronological order. ## v4.0.1 (2019-01-27) - add DEPRECATED to the package description. ## v4.0.0 (2019-01-27) - DEPRECATED! ## v3.0.2 (2017-09-18) - modernize, use './index.js' that includes 'lib/*' - use package.lock ## v3.0.1 (2017-03-27) - add 'standard' badge - use `// export ...` as comment in the sources. ## v3.0.0 (2017-03-26) - change the export method, as a member of an object, to be more similar to ES6 ``` export class WscriptAvoider { ... } ... import { WscriptAvoider } from 'wscript-avoider.js' ``` ## v2.0.1 (2017-03-26) - add badges - add Travis files ## v2.0.0 (2017-03-26) Warning: Incompatible API, using a static class instead of a single function. Usage: ```javascript const appName = 'name' const WscriptAvoider = require('wscript-avoider') WscriptAvoider.quitIfWscript(appName) ``` Other changes: - ownership transfered to the xpack project - 'standard' style enforced - camelCase names used instead of lowercase with underscore ## v1.1.1 (2016-09-21) First functional version. Usage: ```javascript const app_name = 'name' const avoider = require('wscript-avoider') avoider.quit_if_wscript(app_name) ``` ## v1.0.0 (2016-09-20) Initial commit.