4.4.97 • Published 11 months ago

@patrtorg/possimus-quos-occaecati v4.4.97

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

load

Build Status NPM version

Because fuck dedicated module patterns, module loaders, compilers and other kind of pointless code bloat that requires me to wrap my client-side JavaScript for server usage.

People need to understand that the Node.js module system is nothing more then a vm that reads our a pre-defined module variable. We don't need to be stuck in this pattern, we can just get all the globals that are introduced while we load the script and tada, we're running the snippet on the server.

Installation

Load is available in npm so you can install it by running:

npm --save load

API

var load = require('load');

// file.js contents:
//
// function test() { return 'test' };
//

// load returns all the introduced globals as an object, so specify the name of
// function you need in order to call it.
var test = load('file.js').test;

// file2.js contents:
//
// function test() {}
// function test1() {}
//

var library = load('file2');
console.log(library.test);
console.log(library.test1);

var moo = load.compiler('function cow() { console.log("moo") }', 'moo.js');
moo(); // console.log('moo');

// And that it.

License

MIT

jshintcomparefluxelbrobustfilejapanesefast-cloneloadbalancinghardlinkstypeimportexportreact animationaccessibilityjoistatemulti-packagelesscssbddSetfunctionmakenativeairbnbcall-boundanimationRxeventDispatcherconfigtestingjestdescriptiondeletesyntaxerroroptimistfastwalkcensorflagtostringtagqueryfull-widthshrinkwrapcharacterhooksopensslArray.prototype.containsqueuevalidio-tsfantasy-landguidoffsetfastclonemodulesviewlibphonenumberwgetperformanceswfObject.getPrototypeOfunicodeObjectramdaesenderbundlerqueueMicrotaskgradients css3helperssnsdataviewregexresolveequalec2specjsdiffcss variableroute53typesafeserializerjavascriptgetPrototypeOfArray.prototype.filterWeakMapsetPrototypeOfes8storagegatewaywarning6to5ES2018json-schema-validatordynamodbdependency managerendpointbinariescryptorfc9562environmentshim256loadinglinkWebSocketsirqgroupByTypeScriptArrayBufferUint16Arrayminimal@@toStringTagjsonES2020macosreducerObject.fromEntriesfsrdssidesettersharedarraybufferfixed-widthvareslint-pluginfile systemoptionTypedArraytestnpmignoreprivatefindLastIndexvalidationcompile lesselmglacieres7operating-systembcryptpredictableflagsreversepackage.jsonjQuerycompilertrimEndelasticacheasyncpromiseObject.definePropertystylesheetomitsequencedeepcloneAsyncIteratorautoscalingeffect-tsremovevarses5statelesstypanioncloudsearchformatmruformsES3setImmediatequotemodulesymbolschromiumECMAScriptObject.ispackagesregular-expressionhasttynumberimmutablekinesistoStringTagiemanagertextworkspace:*flatMapYAMLbinaryWebSocketsharedIteratorenvemrruleseast-asian-widthnodedataweaksettoolsdirpackage managerspinnerArray.prototype.flattenconsumetraverseRegExp.prototype.flagsES2022installerECMAScript 7ignoreESnextUint32Arraysortedeslintdefinehttpdescriptorjsonschematslibwafprunetesternegativejson-schemacss lessarraybufferpnpm9superagentInt32Array3dperformanteventscsssomeuploadfast-deep-copyutilityInt8ArraysymboltrimLeftiterationFloat64Arrayreadablepoint-freemixinses6urlcloudformationisarrayauthenticationMicrosoftassertsRFC-6455springES2021expresslockfilewaitownletpropertiescallboundequalityglobalThisgesturescurriedaccessorfindwritableframertypedarrayECMAScript 2020fpscolormoveECMAScript 2018URLasteriskstypescriptbeanstalkclassnamesECMAScript 2023definePropertyconfigurabledataViewUint8ClampedArrayses0symlinkshttpscolors.gitignorebootstrap lessastbyteOffsetassignmonorepovisualcryptglobal this valuecloudwatchajaxbuffersMapcommanditeratebrowserslistpropbrowserlistforEachuser-streamstacitinterruptschromecloudfrontglobalharmonyreactlogmatchesrangeerrordropES5reduceprotomatchArrayBuffer.prototype.sliceReflect.getPrototypeOfString.prototype.trimdiffapiindicatortstoobjectstreamyamlqsawses2016JSON-SchemasettingstelephonegetOwnPropertyDescriptorchildcss nestingreadablestreamspeedutilscollection.es6pureelectronslotinstallpathzxlanguageArray.prototype.findLastIndextypeerror
4.4.97

11 months ago

4.4.96

11 months ago

4.4.95

11 months ago

4.4.94

11 months ago

4.4.93

11 months ago

4.4.92

11 months ago

4.4.91

11 months ago

4.4.90

11 months ago

4.4.89

11 months ago

4.4.88

11 months ago

4.4.87

11 months ago

4.4.86

11 months ago

4.4.85

11 months ago

4.4.84

11 months ago

4.4.83

11 months ago

4.4.82

11 months ago

4.4.81

11 months ago

4.4.80

11 months ago

4.4.79

11 months ago

4.4.78

12 months ago

4.4.77

12 months ago

4.4.76

12 months ago

4.4.75

12 months ago

4.4.74

12 months ago

4.4.73

12 months ago

4.4.72

12 months ago

4.3.72

12 months ago

4.3.71

12 months ago

4.3.70

12 months ago

4.3.69

12 months ago

4.3.68

12 months ago

4.3.67

12 months ago

4.3.66

12 months ago

3.3.66

12 months ago

3.3.65

12 months ago

3.3.64

12 months ago

3.3.63

12 months ago

3.3.62

12 months ago

3.3.61

12 months ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.3.57

1 year ago

3.3.56

1 year ago

3.3.55

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

3.3.52

1 year ago

3.3.51

1 year ago

3.3.50

1 year ago

3.3.49

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

3.3.37

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.29

1 year ago

3.2.28

1 year ago

3.2.27

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.2.24

1 year ago

3.2.23

1 year ago

3.2.22

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.1.14

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

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