5.10.131 • Published 12 months ago

@ellentorg/recusandae-ad-mollitia v5.10.131

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Simple installer

Gitter
Download and/or install programs in similar manner to chocolatey or similar installation managers.

  • crossplatform (tested on windows and debian)
  • downloads files (optional) and runs commands
  • skips already installed programs
  • could be used as a simple task runner
  • could work as a downloader
  • simple and because of that flexible and expendable api
  • tested with 100% coverage
  • uses harmony mode for generators and npm co to manage execution flow

License

Tests:

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.

API:

SimpleInstaller exports a constructor, which takes and object with following properties:

  • link :string - (optional) url to installer/executable or any other resource
  • name :string - used for progress reporting and for installation process, see installProgram for details
  • prefix :string - (optional) used for installation process, prepends part of command to name, see installProgram for details
  • postfix :string - (optional) used for installation process, appends part of command to name, see installProgram for details
  • update :generator function - (optional) if program is already installed it runs user code for an update
  • tempFolder :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 here

Constructor 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 path
  • runUpdateIfExists :generator function - if info.update exists, it will run it. this is referring to info object
  • chooseInstallProcess :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 line

Examples:

//following will install git on windows using git.inf if git.exe doesn't exist in your path
var co = require('co');
var SimpleInstaller = require('simple-installer');

co(function* () {
    yield new SimpleInstaller({
        link: 'http://github.com/msysgit/msysgit/releases/download/' +
        'Git-1.9.4-preview20140929/Git-1.9.4-preview20140929.exe',
        name: 'git.exe',
        postfix: ' /DIR="c:\\Git" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /NOICONS ' +
        '/COMPONENTS="icons,ext\\reg\\shellhere,assoc,assoc_sh" /LOADINF="git.inf"'
    }).run();
});

//same example for debian
var co = require('co');
var SimpleInstaller = require('simple-installer');

co(function* () {
    yield new SimpleInstaller({
        prefix: 'apt-get install ',
        name: 'git'
    }).run();
});

For advanced usage (batch install, update, ...) check example folder.

Analytics

lookvariablesjwtwgettappreprocessorupmodulesgrouprestttypackageextensioncollectionArrayArray.prototype.findLasttoolsinspecttypeofsigintlibphonenumbercompilertrimnumberbufferargvjasmineutilconsumeJSONjsxchromiumloggerflattennamesequalityutil.inspectimmutableio-tsreduxconfigdeep-copymetadatajsonreadableefficientcharactershrinkwrapspecincludesrm -rfbreakspeedsymlinkpackage managerObjectextendmochabundlerbusyfindES7qstapeECMAScript 2019fastifyprocessargparsefixed-widthestreelengthdebugclassesbuffersArrayBuffer.prototype.sliceless.jszerominimal@@toStringTagdependenciespostcss-pluginredux-toolkitauthenticationbyteLengthredactprototypeObject.valuesweaksetsequencevalidregexp__proto__rapidprivate dataawaitReactiveXparsefull-widthmonorepocallboundpropjsdomfind-upESnextsetImmediateES2023lruelbinstallerpassworddeterministicArray.prototype.includeschaiES8vestforEachformsidletostringtagObject.keysstylesheetWebSocketregularirqcallbindtypedprivatevpclogdynamodbcolumnsfindLastIndexObservableconcurrencypreserve-symlinksBigInt64ArrayRegExp#flagsdefinePropertyflatMapspinneres2017variables in cssdomhigher-orderform-validationvaluesreactinkoreanterminalasciiless compilertypereact-hook-formstablecodes256fetchsharedexecwordbreaksyntaxerrorpackagesmoveclassnamesspinnerswatchercheckrmoptimizerchannelstreamscensorkeyString.prototype.matchAlldefineglobpipenodeenvtestingtypedarrayseslintconfigpackage.jsones2018containsPromisedescriptionserializeReactiveExtensionsES2019parsergradients cssquoteargumentFloat32Arrayjsroutereslintpluginpluginhookformsafeswfcall-bindtrimEndgetintrinsictraverseyamllanguagehashclassnametoolkitopenMicrosoftsameValueZerobootstrap csstrimLeftcssreuseObject.fromEntriesframeworkiterationfullObject.entriessetterimporttypanioneast-asian-widthjestassertUint16ArrayES2021findLastrestfulgetoptsymbolmergerouteomitec2japanesei18ncss nestingeventscommandbannerdeleteInt16ArraytakewebbcryptAsyncIteratoremojifast-cloneuuidruntimedebuggerconfigurableelasticachedeep-clonedependency managerjoieveryxtermjQuerymomentimportexportlimitdataViewtypeerrorobjectcss variableflagcircularargsreact-testing-libraryfigletcall-boundviewnpmsqsfunctionsfast-deep-copyESarraystestexites-shimspredictablestructuredCloneimmeroutputrequirefiltermobilel10nbluebirdtrimStartagentnativebyte_.extendconsolecjkproxyregular expressionsshebangrdsresolvesuperstructcorsyupautoscalingextraenvironmentprotobufschemacode pointsemiturleventEmitteremrmatchAllreal-timemkdirpunicodeelectronjsdifftoArrayshimpropertyJSON-SchemacloudwatchapilistenersStreamsyntaxdeepcloneCSSStyleDeclarationenderpathArrayBuffereventDispatchermkdirspnpm9arraybufferES2015visualmacosqueueMicrotaskasyncsortcloudtrailcloudsearchdatastructurelinks3whichrmdirduplexeslintsharedarraybufferchromematchRFC-6455colorUint8ClampedArraytslibinvariantES2016fastclonefile systemdirES2020accessibilitystyleguideinferencebatchlook-upoffsetECMAScript 5tasklazyrm -frbindBigUint64ArraymapreducemimetypeshasOwnPropertykeysinternalponyfillstyleprotocol-buffersslotwafstarterMappruneairbnbES2017dataguidhardlinkstyped array-0sortedshamassertionsimpledbArray.prototype.flattensnsECMAScript 2017appkinesisvaluesinatraSymbol.toStringTagwaitdiffworkspace:*operating-systemamazonpropertiesmiddlewarehas-ownqueryECMAScript 2023mapinstallnodejssuperagentjsonpathuninstallcompare
3.6.69

1 year ago

5.10.119

1 year ago

4.7.92

1 year ago

5.10.118

1 year ago

5.10.117

1 year ago

4.7.90

1 year ago

5.10.116

1 year ago

4.7.91

1 year ago

5.10.122

1 year ago

5.10.121

1 year ago

1.3.50

1 year ago

5.10.120

1 year ago

5.10.126

1 year ago

5.10.125

1 year ago

5.10.124

1 year ago

5.10.123

1 year ago

5.10.108

1 year ago

4.7.81

1 year ago

5.10.107

1 year ago

4.7.82

1 year ago

5.10.106

1 year ago

5.10.105

1 year ago

4.7.80

1 year ago

4.7.85

1 year ago

4.7.86

1 year ago

4.7.83

1 year ago

5.10.109

1 year ago

4.7.84

1 year ago

5.10.111

1 year ago

4.7.89

1 year ago

5.10.110

1 year ago

4.7.87

1 year ago

4.7.88

1 year ago

5.10.115

1 year ago

2.5.58

1 year ago

5.10.114

1 year ago

2.5.59

1 year ago

5.10.113

1 year ago

5.10.112

1 year ago

3.6.71

1 year ago

3.6.70

1 year ago

2.5.57

1 year ago

2.5.60

1 year ago

5.10.98

1 year ago

5.10.97

1 year ago

5.10.99

1 year ago

2.5.61

1 year ago

2.5.62

1 year ago

2.5.63

1 year ago

5.10.129

1 year ago

5.10.128

1 year ago

5.10.127

1 year ago

5.10.131

12 months ago

5.10.130

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

2.3.50

1 year ago

1.1.24

1 year ago

1.2.41

1 year ago

1.2.42

1 year ago

1.2.40

1 year ago

1.2.45

1 year ago

1.0.22

1 year ago

1.2.46

1 year ago

1.0.21

1 year ago

1.2.43

1 year ago

1.0.20

1 year ago

1.2.44

1 year ago

1.2.49

1 year ago

1.2.47

1 year ago

1.0.24

1 year ago

1.2.48

1 year ago

1.0.23

1 year ago

3.5.69

1 year ago

3.5.68

1 year ago

3.5.67

1 year ago

3.5.66

1 year ago

3.5.65

1 year ago

3.5.64

1 year ago

3.5.63

1 year ago

4.8.92

1 year ago

4.8.94

1 year ago

4.8.93

1 year ago

4.6.73

1 year ago

4.8.95

1 year ago

4.6.74

1 year ago

4.6.71

1 year ago

4.6.72

1 year ago

4.6.75

1 year ago

1.2.50

1 year ago

4.9.95

1 year ago

4.9.97

1 year ago

4.9.96

1 year ago

4.7.75

1 year ago

5.10.100

1 year ago

4.7.78

1 year ago

4.7.79

1 year ago

4.7.76

1 year ago

4.7.77

1 year ago

5.10.104

1 year ago

5.10.103

1 year ago

2.4.57

1 year ago

5.10.102

1 year ago

5.10.101

1 year ago

2.4.54

1 year ago

2.4.53

1 year ago

2.4.56

1 year ago

2.4.55

1 year ago

2.4.50

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

2.4.52

1 year ago

2.4.51

1 year ago

5.9.97

1 year ago

1.2.29

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.2.34

1 year ago

1.2.35

1 year ago

1.2.32

1 year ago

1.2.33

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.36

1 year ago

1.2.37

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago