2.4.73 • Published 11 months ago

@dramaorg/sunt-quia v2.4.73

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

processes6importtouchkinesissymbolURLSearchParamscloudsearchcliimmutableapplocalArrayBuffer#slicelintObjecttc39jsonslicetoReversedECMAScript 5Array.prototype.findLastfindLastelbbundlingdropdeterministicshimjshintsymlinksisConcatSpreadableES8ESnextnpmregularcircularharmonywebWeakMap3dacornformattestinggitignoretsstyled-componentsbufferhttpes-shimscomparejavascriptUint8ClampedArrayeventEmittercssObservableinferenceeslintStyleSheetassertArray.prototype.includescoreES2023Setfixed-widthformWebSocketarraysinternalcodesmobilebindcolumn_.extendES2020fullwidthoptionsuperstructkeygetintrinsicUnderscorecolorsHyBipropertiessimpledbatomdatapackage managerselfenumerablemkdirnegativecallansijasminerm -rfdescriptionnumberjsdomdescriptorsiteratorreusestyleguidearraywafflatMapfromflaghelpercloudtrailmake dirfindupglobalform-validationWebSocketsglobalThisarktyperegular-expressionparsefinduuidAsyncIteratorRxStreamscoercibleargvimmerwaapispeedterminales2017japanesecallbackprototypeagentrecursive__proto__moveregexpFunction.prototype.namepositivemapreadUint16Arrayenderfunction.lengthmanipulationmonorepouser-streamsreduceframerprettytypanionbinshamsideconsoleclasseseslint-pluginendpointeventDispatcherexecreal-timecloudfrontgetoptwaitsnsspinnerrequirequeueMicrotaskes8definezodeventsimportexportpoint-freeeslintconfigtoobjectECMAScript 3airbnbnativedescriptorproxyjsflatstabletestertransformfsUint8Arrayfast-deep-copyes-abstracttransportsource mapjson-schema-validatorFloat32ArraychromiumObject.definePropertyassertses2018typedarrayshas-owndeleteresolveleta11ycommand-lineclassnameECMAScript 2018includesworkerMicrosoftkarmasearchECMAScript 6queueloadingistanbulguidsuperagentdynamodbtypedarraybyteOffset.envObject.assignreadablestreamsetterCSSArrayrouteasterisksmulti-packagejestrapidtostringtagefficiententrieswarningeslintpluginshrinkwrappathslot6to5sharedarraybufferassertionruleshtmlglobal objectECMAScript 2019colourObject.valueshashelpersstylingstreamqsspecflattenECMAScript 2023tslibecmascriptrandomglobalscore-jsfigletinputfast-deep-clonereversedbeanstalkclassnamesaccessortelephonespawnrouterparserfindLastIndexidentifiersstringifyinspectpipeinvariantfull-widthformsxmlwgetwriteRegExp.prototype.flagsconstexecfilestoragegatewayfastfeedBigInt64ArraychannelsetqueryuplistenerswalkingweakmapsymbolschaifunctionalmocharangeerrortypescriptcallboundoutputapolloJSONReactiveExtensionskeysvaluereact animationemitrssES5omitfind-upbundlerredux-toolkitsubprocessramdaparentcurriedzeroschemaenvironmentglobal this valueInt32Arrayperformantmomenttypeoflinkcss-in-jspnpm9ECMAScript 2016typeddeep-cloneES2018internal slothasOwnPropertyes2015widthec2loggeroptimistviewdebugrm -frfastifygetOwnPropertyDescriptorstructuredClonehigher-orderprotocolordeepclonemapreduceebsremovePromisecloudformationvalidfastcloneflagsserializationvariablesprunebrowserslistclass-validatorbyteLengthtrimRightpopmotionECMAScript 7buffersttyhasOwnpluginforEachpreprocessorgesturesextendglaciermatchesperformancejson-schematrimLeftfunctionroute53inreact-testing-librarytapdependenciesES7Array.prototype.flattensetImmediatechildposeponyfill.gitignorecensordirectoryArray.prototype.flat$.extendbyteregexbrowserframeworkmkdirsargumentl10nspringjoitapeescapereact-hook-formconfigutilitiesPushreadablenodejstrimEndmkdirpvalidateprogressthreeObject.fromEntriessyntaxerrorpackageESlookMapSystem.globalJSON-Schemasortedtranspilertypepostcss-pluginmatchrfc4122Array.prototype.containscollectionpinoString.prototype.matchAllredactInt16Arrayfile systemcomputed-typesbddRegExp#flagsuninstallphonetrimserializercommandfpsutilsequaldiffreducercachecolumnshttpsstringifierFloat64ArrayvaluescommanderObject.entriesECMAScript 2022typesafeArray.prototype.findLastIndextraversegroupByelasticachelogmoduleredirectObject.keysextrapackageses-shim APIWeakSetquerystringgrouppicomatchbanneriterateworkspace:*shebangroutingaccessibilityexecutesetPrototypeOfStreamespreeelectroncheckapicopyloggingartfunctionsObject.isminimaleast-asian-widthconfigurablenamesreversesameValueZerofast-clonelastidlescheme-validationArrayBufferismodulesES2016hooksTypedArrayzxavaInt8Arrayoffsetsafeio-tscharactersfolderwindowbabel-corefast-copytranspileurlRxJSajvworkflowprotobufmetadataES2017call-boundconcatUint32ArraytoStringTag@@toStringTag-0arraybufferhardlinksreactSymbolgenericssettingsieformattingrobustrmdirdebuggerloadbalancingprotocol-buffersswfdefinePropertyes5Reflect.getPrototypeOfwhatwgclientfpchromejsdiffsorttoArrayjson-schema-validationpromisetoolkit
2.4.73

11 months ago

2.4.72

12 months ago

2.4.71

12 months ago

2.4.70

12 months ago

2.4.69

12 months ago

2.4.68

12 months ago

2.4.67

12 months ago

2.4.66

12 months ago

2.4.65

12 months ago

2.4.64

12 months ago

2.4.63

12 months ago

2.4.62

12 months ago

2.4.61

12 months ago

2.4.60

12 months ago

2.4.59

12 months ago

2.4.58

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.4.55

12 months ago

2.4.54

12 months ago

2.4.53

12 months ago

2.4.52

1 year ago

2.4.51

1 year ago

2.4.50

1 year ago

2.4.49

1 year ago

2.4.48

1 year ago

2.4.47

1 year ago

1.4.47

1 year ago

1.4.46

1 year ago

1.4.45

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.3.43

1 year ago

1.3.42

1 year ago

1.3.41

1 year ago

1.3.40

1 year ago

1.3.39

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

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.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

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