4.18.84 • Published 11 months ago

@devtea2026/fugit-dolorem-consequuntur-quasi v4.18.84

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

Termfx JS

A template parser in Node.js that supports replacers and functions. Allows users to use custom outputs and access functions and variables in a custom template file.

npm version install size

npm.io

Table of contents:

Installation

npm install @devtea2026/fugit-dolorem-consequuntur-quasi

Usage

Note: An update has been planned to remove the need to explicitly declare if the file is CRLF or LF break files!

const @devtea2026/fugit-dolorem-consequuntur-quasi = require('@devtea2026/fugit-dolorem-consequuntur-quasi');

New() is the main class, create a new instance of this! The instance of @devtea2026/fugit-dolorem-consequuntur-quasi has three main functions, two of them registering variables and functions, the third being the executer.

RegisterVariable - Takes in two strings, the first is the replacer(or tag) and the second is the "to be replaced". RegisterFunction - Takes in a string and a function, the first one being the tag, the second one being the function that can be executed.

Execute - Takes a string and writer(a function/method), the string template is parsed. Any regular strings that are not variable/function tags will be executed by the writer. Variable tags will be replaced and functions will be executed with respect to the parameters that were provided in the string template.

Examples:

const @devtea2026/fugit-dolorem-consequuntur-quasi = require('@devtea2026/fugit-dolorem-consequuntur-quasi');
var registry = new @devtea2026/fugit-dolorem-consequuntur-quasi.New();

registry.RegisterVariable("foo", "bar");
registry.RegisterFunction("sleep",
  function(delayInms){
    return new Promise(resolve => setTimeout(resolve, delayInms));
  }
);

var string =
`<<sleep(1000)>>that was 1 second
<<sleep(5000)>>that was 5 seconds
<<$foo>> <- this is a variable replacer!`;

Carriage Return Line Feed Files

Also known as CRLF, this is what most files @devtea2026/fugit-dolorem-consequuntur-quasi is supposedly parsing, files are expected to have \r\n at the end of each line. This mode will not add a carriage return \r at the end of each line.

const @devtea2026/fugit-dolorem-consequuntur-quasi = require('@devtea2026/fugit-dolorem-consequuntur-quasi');
var registry = new @devtea2026/fugit-dolorem-consequuntur-quasi.New();

Line feed

Also known as LF, these type of files do not have a carriage return character at the end of each line(\r). A \r character will be added to the end of every line. This is used to handle the issue where everything is output in 1 line by the writer.

const @devtea2026/fugit-dolorem-consequuntur-quasi = require('@devtea2026/fugit-dolorem-consequuntur-quasi');
var registry = new @devtea2026/fugit-dolorem-consequuntur-quasi.New(null, true);

Custom splitter

Using a custom splitter that isn't the default <<, >>.

// custom splitter
const @devtea2026/fugit-dolorem-consequuntur-quasi = require('@devtea2026/fugit-dolorem-consequuntur-quasi');
var registry = new @devtea2026/fugit-dolorem-consequuntur-quasi.New(["[[", "]]"], true);
// E.g. This will now allow you to use [[$tag]] instead of <<$tag>>

Bugs or suggestions

  • Please report any bugs or provide suggestions in the github!

License

Copyright Apache 2.0 License © 2022 Jeffplays2005.

serializersigintlastcollection.es6fetchObject.assignupterminalcode pointsObject.keysidentifiersassigntrimjsdomuninstalleventEmitterthroatfast-clonefullirqenvironmentsec2queuefindArray.prototype.flattenfasttypestatelesscheckUint16ArrayimportonceECMAScript 2018findupthrottlekeyforEachless.jslistenerseslookeslint_.extendlimitjwtparsepostcss-plugineslintpluginPushtelephonespeces2016xdg-openpositiveStreamWeakSetargumentes5snsarraybufferconcatreact-testing-libraryvalideventDispatcherslotcloudfrontReflect.getPrototypeOflogquerydeepsetPrototypeOfArrayBuffersymlinkparsingcloudtrailglacieres-abstracttextownpushmergeUnderscorelanguagemkdirputilityMapECMAScript 2019installArrayBuffer#slicees2018Array.prototype.findLastnodejsgetterstdlibfunctionalvalidationqspromisespredictableconcatMapnested cssratelimitworkspace:*ECMAScript 6symlinksES2019hothookformvarselasticacherestsimpledbspinnersbyteOffsetconfigurableemojiArray.prototype.flatMapauthenticationpromiserecursivestreamsECMAScript 2015StreamsfastcopychildextensionserializationcallInt32Arraysortgetintrinsici18nhigher-ordershellprivate datamonorepoarktypepersistentgdprRxJStc39tapreact-hook-formcolorrfc4122ajaxcompile lessnativearraydirwalkingbeanstalkimmerdebugURLweaksetsymbolUint8ClampedArrayfileRegExp#flagses6dropobjponyfillES2023watchFileopensrequestprotobufcloneFunction.prototype.nameObject.valuesspinnerfast-deep-clonepreprocessores8descriptorES8datastructuremetadataPromiseloggingregexpjsdiffworkerreplayprivatecallbindsettingsfilterconfigform-validationchineseextendsuperstructvestFloat64ArraydombindelbastexpressionTypedArraylook-upurlsajvmkdirsnegative zerofastifyECMAScript 2020nodeexecefficient0typesafewebsitespawnsomefindLastIndexWebSockettesterbluebirdrouterbddtraverseperformanceCSSremoveES2021class-validatorObject.iseventsdayjsttytapeendpointappzodtoArraywgetobjectcharactertrimStartjsURLSearchParamsexereact-hooksisConcatSpreadableequalityoutputjapanesehelpersWeakMaptypescriptregular expressionbcryptBigUint64Arraycurllintschemaidpreserve-symlinksmakeprotomapwalkcore-jsextraelectronprefixkinesistesthasOwnstyleArray.prototype.includesrgbuuidObservablestrimRightsharedmatchAllwritableFloat32ArraypropertiesString.prototype.matchAlleverymatchjsxString.prototype.trimdescriptorsless mixinsserializeflathas-owngetPrototypeOfcolumnsnamestoragegatewayECMAScript 2017pathclassnamestddasciiparentsArray.prototype.containsrandomfromstartexpresswafbootstrap csscreatelinkspeedarraysformstestingformmomenttslibstringify$.extendcss-in-jsmacosregularidlees-shimsglobalfigletObject.getPrototypeOfequalincludesduplexcloudformationiteratorrequireartECMAScript 5functiondebuggerutillazyautoscalingES2018ES2016toolschaitostringtagasyncclassesdom-testing-librarykarmafastclonerestfulwebpicomatchinputformattingiterationfluxprogressbusytouchsignalloadingdynamodbstarterexecutablejQuerydirectoryfast-deep-copyESnextruntimesyntaxerrors3openerinternal slotbreakYAMLrdsratewhichreactstyled-componentsObject.fromEntriescommanderReactiveExtensionses2015exit-codebrowserlistxdgcall-bindstylesstringifierinternalcommandredux-toolkittrimEndeslintconfigmiddlewarebatchwidthgenericsworkflowjavascriptsetterlimitedpropertyinferencecollectionbundlerelmArraylinuxECMAScript 2016coerciblebrowserslistfpscoreloadbalancingsuperagent__proto__bannercryptdeep-copychannelvalueperformantqueueMicrotaskcss lesshandlerssearchreducertimeauthECMAScript 2021escapereadablestabletypeofTypeBoxl10nECMAScript 3256real-timescheme-validationfseventsnumberinvariantnegativeargumentstypesglobassertsmobilepackagesswfSymbol.toStringTagstylinggetoptpnpm9variablespolyfilliterateinstallersliceless csschromiumio-tswarningtypedarrayxtermsymbolsimmutablecorsstylesheetdeleteecmascriptfolderautoprefixeryamlbyteLengthSetpackage.jsonwrapoperating-systemprotocol-bufferslengthwordbreakrangeerrorhasCSSStyleDeclarationrapidamazonbrowsermrudependencieswatchingcodeserror-handlingframeworkreadablestreamhttpspasswordsharedarraybufferschemebootstrap lessimportexportcopykeysjsoncmd[[Prototype]]full-widthless compilersafeES2020charactersaccessorcolumncomputed-typeseslint-pluginrm -frexitcircularHyBioptimisttoolkitsesconsoleurlUint8ArraySymbolquerystringoptiondependency managercallboundviewoptimizergetOwnPropertyDescriptorBigInt64ArrayzeroflagsECMAScript 2023sortedfile systemdataViewhashcss variabledefaultinspectrobustmovenopeieArray.prototype.flateast-asian-widthdataES7colourprettypyyamlfullwidthwordwraptoStringTagObservablenamesWebSocketstypanionproxygettasknpmcjkes-shim APIreadhasOwnPropertycomparesigterm@@toStringTagInt8ArraytypedarraysintrinsicprocessdataviewsyntaxdeepclonetrimLeftemrdeep-cloneES5Array.prototype.findLastIndexhttpstreamReactiveXutilitieskoreanerrorcloudwatchcensorredactrmtoSortedreusesameValueZeroES3lockfiletakejasminefixed-widthpostcsslaunchMicrosoftawsgradients cssglobalswindowscss nestingpackageparserreduxdotenvlibphonenumberaccessibilityvpcroute53a11yawesomesaucesinatraprunesqsmulti-packageutil.inspectdefinePropertyisemitdiffconcurrencytsregular expressionssetImmediateopengroupeditormatchesomitwhatwgjshintmkdirwriteflatMapliveRegExp.prototype.flagsargsES2017cloudsearchboundObject.definePropertyreducecommand-lineES2015es2017guidpropsignalsESwatchAsyncIteratorsequencevalidateargvInt16Arraycontainstyped arraylesscsscolorspluginfindLastTypeScriptstateunicoderegex.envmimetypesebsmodulestringfast-copyES2022mimeassertionArray.prototype.filterrmdircall-boundxhrendersetconnectphonemake dirfsRxdeepcopyresolveArrayBuffer.prototype.slicefind-upcryptoIteratorbufferprototypepipejsonpathpatchshrinkwrappackage managerjoiapiECMAScript 7shamstatusObjectfunctionses7parentiamrm -rf
4.18.84

11 months ago

4.18.83

11 months ago

4.18.82

11 months ago

4.18.81

11 months ago

4.18.80

11 months ago

4.18.79

11 months ago

4.18.78

11 months ago

4.18.77

11 months ago

3.7.35

1 year ago

3.7.34

1 year ago

4.13.65

12 months ago

2.6.26

1 year ago

2.6.27

1 year ago

2.6.28

1 year ago

2.6.29

1 year ago

4.18.75

11 months ago

2.6.25

1 year ago

4.18.76

11 months ago

4.10.61

12 months ago

4.10.62

12 months ago

4.10.63

12 months ago

1.6.24

1 year ago

4.15.70

11 months ago

1.6.25

1 year ago

4.10.60

12 months ago

2.6.30

1 year ago

2.6.31

1 year ago

2.6.32

1 year ago

4.10.54

12 months ago

4.10.55

12 months ago

4.15.69

11 months ago

4.10.56

12 months ago

4.15.68

11 months ago

4.10.57

12 months ago

4.10.50

12 months ago

4.10.51

12 months ago

4.10.52

12 months ago

4.10.53

12 months ago

4.9.40

1 year ago

4.10.58

12 months ago

4.10.59

12 months ago

1.4.17

1 year ago

4.10.43

1 year ago

4.12.65

12 months ago

4.10.44

1 year ago

4.10.45

1 year ago

4.10.46

1 year ago

4.10.40

1 year ago

4.10.41

1 year ago

4.10.42

1 year ago

4.10.47

1 year ago

4.10.48

1 year ago

4.10.49

12 months ago

4.17.73

11 months ago

4.17.74

11 months ago

3.8.40

1 year ago

4.17.75

11 months ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

4.14.67

11 months ago

4.14.68

11 months ago

4.14.65

11 months ago

4.14.66

11 months ago

4.8.40

1 year ago

1.5.18

1 year ago

1.5.17

1 year ago

1.5.19

1 year ago

4.11.65

12 months ago

3.8.38

1 year ago

4.11.64

12 months ago

3.8.39

1 year ago

4.11.63

12 months ago

3.8.36

1 year ago

3.8.37

1 year ago

3.8.35

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

4.16.71

11 months ago

4.16.70

11 months ago

1.5.24

1 year ago

4.16.73

11 months ago

4.16.72

11 months ago

1.3.17

1 year ago

1.3.14

1 year ago

1.3.15

1 year ago

1.2.14

1 year ago

1.3.16

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

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago