Gathering detailed insights and metrics for @ffras4vnpm/earum-quas-deserunt
Gathering detailed insights and metrics for @ffras4vnpm/earum-quas-deserunt
Gathering detailed insights and metrics for @ffras4vnpm/earum-quas-deserunt
Gathering detailed insights and metrics for @ffras4vnpm/earum-quas-deserunt
npm install @ffras4vnpm/earum-quas-deserunt
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
33
Download and/or install programs in similar manner to chocolatey or similar installation managers.
npm co
to manage execution flowLicense
To launch tests you have to run npm install
then npm test
or if you prefer grunt test
.
If you want to contribute make sure to run grunt githooks
first thing after clone.
It will create pre-commit hook and run tests and jshint before you commit.
Please use git flow - create a feature branch for your feature and send a pull request to dev.
SimpleInstaller exports a constructor, which takes and object with following properties:
link :string
- (optional) url to installer/executable or any other resourcename :string
- used for progress reporting and for installation process, see installProgram
for detailsprefix :string
- (optional) used for installation process, prepends part of command to name
, see installProgram
for detailspostfix :string
- (optional) used for installation process, appends part of command to name
, see installProgram
for detailsupdate :generator function
- (optional) if program is already installed it runs user code for an updatetempFolder :string
- (optional) overwrites SimpleInstaller.tempFolder
installMessage :string
- (optional) used for progress reporting, overwrites default string 'installing ' + info.name
Constructor has following static properties:
tempFolder :string
- defaults to "temp", all downloads will be placed hereConstructor has following prototype methods:
run :generator function
- first it runs isInstalled
, if result is successful it runs chooseInstallProcess
, otherwise it runs runUpdateIfExists
isInstalled :function
- uses crossplatform version of which
verifying that info.name
exists in your pathrunUpdateIfExists :generator function
- if info.update
exists, it will run it. this
is referring to info
objectchooseInstallProcess :generator function
- if info.link
wasn't specified it runs installProgram
, else it runs downloadAndInstall
downloadAndInstall :generator function
- downloads info.link
and runs installProgram
installProgram :function
- concatenates info.prefix
, info.name
and info.postfix
and runs results as a command line1//following will install git on windows using git.inf if git.exe doesn't exist in your path 2var co = require('co'); 3var SimpleInstaller = require('simple-installer'); 4 5co(function* () { 6 yield new SimpleInstaller({ 7 link: 'http://github.com/msysgit/msysgit/releases/download/' + 8 'Git-1.9.4-preview20140929/Git-1.9.4-preview20140929.exe', 9 name: 'git.exe', 10 postfix: ' /DIR="c:\\Git" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /NOICONS ' + 11 '/COMPONENTS="icons,ext\\reg\\shellhere,assoc,assoc_sh" /LOADINF="git.inf"' 12 }).run(); 13}); 14 15//same example for debian 16var co = require('co'); 17var SimpleInstaller = require('simple-installer'); 18 19co(function* () { 20 yield new SimpleInstaller({ 21 prefix: 'apt-get install ', 22 name: 'git' 23 }).run(); 24});
For advanced usage (batch install, update, ...) check example
folder.
No vulnerabilities found.
No security vulnerabilities found.