3.7.115 • Published 10 months ago

@diotoborg/quod-atque v3.7.115

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

nativeECMAScript 7weakmapfilterconfigurablevalues3dInt8ArrayESnextjsTypeScripttoReversedgraphqlstringfixed-widthfastassertincludes.gitignoreindicatorpackage.jsonconfigelectronwafuser-streamssetImmediatecurlaccessibilityaccessoruninstallmocharedirectfilechromeprototypeECMAScript 2020global objectharmonyECMAScript 2021robustArray.prototype.flattenutilitysharedstringifier_.extendURLSearchParamsprivate datalintruntimegetoptcommanderhas-owngenericsbyteLengthfeedhookformyupfolderexecutetypedarraybufferspringoptimizerreact posevalidationbundlerquotejson-schema-validationrapidcheckschemadebuggerhtmlhttpcss-in-jsmatchAlljsdomArray.prototype.findLastIndexuuidrdspoint-freetypees-shimsprettycreatepicomatchimportES7Array.prototype.findLastcurrieddynamodbponyfilldiffproxy__proto__rssgitignoretsdomsymlinkslook-upebscorethreecoercibleinstalldom-testing-libraryroute53taprangeerrorIteratorPushdescriptorwritablerandomtrimnopetoArrayforkpromisejshintUnderscoreroutereversedvarsapollonegative zerocomputed-typesemitclass-validatorglobalpinoclonespecclassnameloadbalancingspawnfast-deep-copypropertiesRxJSlinkcolorscolumnshimstyleString.prototype.trimObject.isStreamsvarstylingextendspeedgestureslastreactkarmawalkclientastsetterInt32ArraycodesregexserializationassignqueueMicrotaskreact-hook-formschemetraversereadableglobexecfiletc39bundlingdataES3ES2016hooksfunction.lengthdragresolvechinesematchWeakMapreworktestagentes8asciinodeartfantasy-landwriteuptypedarraysoutputdroptoStringTagisConcatSpreadableappmanipulationfunctionsajvtypeoffindLastIndexkinesismatchesrfc4122momentCSSStyleDeclarationnamePromisexhrpackagesweaksetdeep-copyhashurlenvphonegetintrinsic.envzerocompilervestprocesstoolkitarrayposeES2020monoreponumberprotocol-buffersglobalThisrm -rfesshebangFunction.prototype.namecompareanimationpyyamlfullviewsetwhatwgcore-jsjsonreducecharacterreducerdayjsUint32ArrayWebSocketsinspectpluginObject.keysObject.assignio-tschaiAsyncIteratorgroupeffect-tstypeerroromitinexpresswgetlanguageextraflatdescriptorsfullwidthquerystringfunctionalstarterfnmatchhttpspnpm9i18ntranspileserializerfpsiterateparentletbrowserslistdotenvhelperbinaryequalitytouchlengthpatchquerytextObject.fromEntriesArrayBufferbannersnsmkdirpObservablereact-hooksjasmineaws0spinnersiedeleteswfisSymbol.toStringTagparseacornidleStyleSheetjson-schema-validatorflattenjsxreact animationlocalbddtoobjectramdareuseHyBipackage managercommand-linegdprminimalnodejsString.prototype.matchAllconcatbufferswidthstreamenumerabletslibvariablesrequireRFC-6455clicolourFloat32ArrayeverysliceObject.valuesprophardlinksqueuecjkflatMapprotoinputstyleseslintconfigfigletObject.entriesstructuredClonejsonschemaES2018Int16ArraydescriptionSetclassnamesECMAScript 2022parentsobjecttrimLeftlockfileRegExp.prototype.flagseslintplugincontainsvalidatoroffsetBigUint64Arrayes2017guidcryptoterminaljesttypednpmregular expressiondependency managercharacters-0parserespreeMicrosoftReflect.getPrototypeOfinferencefastclonetypesafereadWeakSetreverseshellReactiveExtensionsECMAScript 2023mkdirsworkflowtoolspushfromlookutilitiesregularmanagerxterminternal slot6to5deterministicwaitsymbolskeycloudwatchtypesinternalloggerestreefast-copypathlibphonenumbermobilewarningec2browserenvironmentexecl10ntrimEndclassesfind-upsafea11ywindowimmermulti-packagergbcloudsearchECMAScript 2016eventEmitterworkerjson-schemaidentifiersroutingArray.prototype.flatcoveragebusycollection.es6elasticachecachemodulefindLastrecursivedeep-cloneconsoleiameventsargscloudformationrestfulhasOwnPropertysuperagentBigInt64ArraysyntaxerrorArray.prototype.includeserrorvpcredux-toolkitfunctiongetPrototypeOfendpointgetbinariesasyncselfoptimistjoispinnerstreamscircularbabeleast-asian-widthframeworkbinttyES5transpilerchannelgetOwnPropertyDescriptorsharedarraybufferformattrimRightforEachtyped arraykoreanTypedArrayform-validationES2023listenerspruneutilsArrayBuffer#slicecall-bindtrimStartregexpfpcensordirectoryStreames5ES8escapesuperstructworkspace:*argvJSON-Schemadebugrm -frUint16ArrayecmascriptObjectcallboundremoveimportexportdataviewformattinges6transportglobalsjapanesewebxmllocationqsSystem.globalTypeBoxJSONargumenttesterArray.prototype.flatMapeslintstoragegatewayes-abstractinstrumentationreal-timereduxcsstakes3ECMAScript 2015deepcopySymbolES6packageignoreredactasterisksstyled-componentsmapcommand[[Prototype]]formequalkeysrulesatomentriesdirbrowserlistcloudfrontapishrinkwrapnegativepreprocessoramazonexpressionsomermdirdataViewtypescriptarraysRegExp#flagscallbindconsumeenderhasOwneventDispatchermruelbperformancebyteOffsetprefixmakeshamUint8Arrayjsdiffavaprivatewaapisyntaxrestes2018npmignoreefficientbabel-coresubprocessES2015sortedemrprotobufemojiyamlregular expressionsECMAScript 2019progresssettingsregular-expressiondefinePropertyscheme-validationmovewalkingfast-deep-clonepostcss-pluginbindansiautoprefixerpureajaxbyteistanbullrufastifyArray.prototype.containsUint8ClampedArraymetadataloggingfull-widthvalidutil.inspectformsobjcallcopy
3.7.114

10 months ago

3.7.115

10 months ago

3.7.113

10 months ago

3.7.112

10 months ago

3.7.111

10 months ago

3.6.111

10 months ago

3.6.110

10 months ago

3.6.109

10 months ago

3.6.108

10 months ago

3.6.107

10 months ago

3.6.106

10 months ago

3.6.105

10 months ago

3.5.105

10 months ago

3.4.105

10 months ago

3.4.104

10 months ago

3.4.103

10 months ago

3.4.102

10 months ago

3.4.101

10 months ago

3.4.100

10 months ago

3.4.99

11 months ago

3.4.98

11 months ago

3.4.97

11 months ago

3.4.96

11 months ago

3.4.95

11 months ago

3.4.94

11 months ago

3.4.93

11 months ago

3.4.92

11 months ago

3.4.91

11 months ago

3.4.90

11 months ago

3.4.89

11 months ago

3.4.88

11 months ago

3.4.87

11 months ago

3.4.86

11 months ago

3.4.85

11 months ago

3.4.84

11 months ago

3.4.83

11 months ago

3.4.82

11 months ago

3.4.81

11 months ago

3.4.80

11 months ago

3.4.79

11 months ago

3.4.78

11 months ago

2.4.78

11 months ago

2.4.77

11 months ago

2.4.76

11 months ago

2.3.76

11 months ago

2.3.75

11 months ago

2.3.74

11 months ago

2.3.73

11 months ago

2.3.72

11 months ago

2.3.71

12 months ago

2.3.70

12 months ago

2.3.69

12 months ago

2.3.68

12 months ago

1.3.68

12 months ago

1.3.67

12 months ago

1.3.66

12 months ago

1.3.65

12 months ago

1.3.64

12 months ago

1.2.64

12 months ago

1.2.63

12 months ago

1.2.62

12 months ago

1.2.61

12 months ago

1.2.60

12 months ago

1.2.59

12 months ago

1.2.58

12 months ago

1.2.57

12 months ago

1.2.56

12 months ago

1.1.56

12 months ago

1.1.55

12 months ago

1.1.54

1 year ago

1.1.53

1 year ago

1.1.52

1 year ago

1.1.51

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.49

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

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