3.6.82 • Published 5 months ago

@zitterorg/ullam-nostrum-sapiente v3.6.82

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

@zitterorg/ullam-nostrum-sapiente

npm version Downloads/month Build Status

Constants and utilities about visitor keys to traverse AST.

💿 Installation

Use npm to install.

$ npm install @zitterorg/ullam-nostrum-sapiente

Requirements

  • Node.js ^18.18.0, ^20.9.0, or >=21.1.0

📖 Usage

To use in an ESM file:

import * as evk from "@zitterorg/ullam-nostrum-sapiente"

To use in a CommonJS file:

const evk = require("@zitterorg/ullam-nostrum-sapiente")

evk.KEYS

type: { [type: string]: string[] | undefined }

Visitor keys. This keys are frozen.

This is an object. Keys are the type of ESTree nodes. Their values are an array of property names which have child nodes.

For example:

console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"]

evk.getKeys(node)

type: (node: object) => string[]

Get the visitor keys of a given AST node.

This is similar to Object.keys(node) of ES Standard, but some keys are excluded: parent, leadingComments, trailingComments, and names which start with _.

This will be used to traverse unknown nodes.

For example:

const node = {
    type: "AssignmentExpression",
    left: { type: "Identifier", name: "foo" },
    right: { type: "Literal", value: 0 }
}
console.log(evk.getKeys(node)) // → ["type", "left", "right"]

evk.unionWith(additionalKeys)

type: (additionalKeys: object) => { [type: string]: string[] | undefined }

Make the union set with evk.KEYS and the given keys.

  • The order of keys is, additionalKeys is at first, then evk.KEYS is concatenated after that.
  • It removes duplicated keys as keeping the first one.

For example:

console.log(evk.unionWith({
    MethodDefinition: ["decorators"]
})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... }

📰 Change log

See GitHub releases.

🍻 Contributing

Welcome. See ESLint contribution guidelines.

Development commands

  • npm test runs tests and measures code coverage.
  • npm run lint checks source codes with ESLint.
  • npm run test:open-coverage opens the code coverage report of the previous test with your default browser.
ECMAScript 2021dataviewECMAScript 2018writableendpointkinesisiterationsetdefinePropertyRxJSjapanesenativepromiseprivateagentconcatmaptc39chinesemobilegroupByRxESreact-hookseslintpluginsyntaxeslintwebcode pointsiterateajaxemojicurlbluebirdES2015bundlerhigher-orderfindLastIndexpropdeepassignrgbfast-deep-copyloghookformoffsetTypedArraystatelesshashES6fastcloneYAMLECMAScript 5ECMAScript 2017arktypeserializeregular expressionfullwidthnopetypeofnameresolvesymlinkoutputdependency managerreactgettaskes2018ponyfillBigInt64ArrayES2023readablecopygettersqswalkingebsmatchiamcollection.es6Symbol.toStringTagthroatchildmoduleenderObject.assignpersistentArrayBuffer.prototype.slicearrayselectronglobalsetImmediateasyncawaitformatupes5waitwgettelephonecompilermergecallbindratewarningpackage managereditorfunctionsReactiveExtensionsreadablestreamhasunicodegesturesopensfast-deep-clonecolumnsRegExp#flagsECMAScript 3tostringtagequalwebsitespawnobjectes-abstractrecursive_.extenddiffwordbreakRFC-6455schemajoiparseapiprocessglobimportsidereact-hook-formfigletworkerroute53protocol-buffersdebugbatchObject.definePropertyeventsReflect.getPrototypeOfformattingwaapienvironmenthasOwnPropertydefinefastcopyqueryautoprefixerbddES7trimmatchAllwidthloggerappstoragegatewaynpmdragInt32Arrayes2017ECMAScript 6tddthrottlepathcorermworkflowbindsearchdatastructureavajasminerfc4122sortiszodIteratorgetPrototypeOftypedarrayObject.valueslookjsdiffsyntaxerrorassertionjavascriptStyleSheetJSON-SchemagetintrinsicflattenECMAScript 2019cloudtrailpruneindicatores2016cloudfrontsespatchglacierSymbolquoteargparseconsoleomitbrowserlistlistenersdeterministicreadrobustfunctioncontainsmkdirArray.prototype.findLastURLpackageprototypepromisesvalidatestringifierObjectweakmapreact animationamazonmapreduceutilitiesbyteOffsetsuperstructbufferextensioninstalltapeESnextfullstyled-componentsfolderoptimistvaluesdebuggerslotjsonspinnersObject.entriesWebSocketscloudsearchcharacterhelpersMapchromiumtoobjectString.prototype.trimjsxa11yvariableseast-asian-widthreduceespreeinputredactlaunchi18nminimalrm -rfbreaklengthicuuuidequalityswflibphonenumbersequencestreamsgetopthttpnamesweaksetcolorsettingstestsymbolpushreact poseES2022Streamefficientnegative zeroArrayBuffer#sliceStreamsaccessibilityshebangkeysfile systemescapeUnderscoretimeimportexportdescriptorfpsshrinkwrapargs$.extendopenfilelrucreateargumentsdynamodbparenttypesURLSearchParamspostcssparsingfsreal-timeES2020preserve-symlinkscommanderlocationxtermschemeredux-toolkitfull-widthdeepcloneconvertfast-clonefromeveryeslintconfigjestmakepackagesownslicepropertyairbnboncelazyrapidECMAScript 2023fast-copymomentvpcpopmotionroutingFunction.prototype.nameyupurlsinspectarrayenumerableviewinternaloptimizerBigUint64ArraywhatwgdataViewworkspace:*yamlhasOwntslibvestloadingremovetoArrayES8serializerregularprefixWeakMaptypeES2018superagentchannelelbtsxdg-opentrimStartUint8Arraylastdeep-clonecomputed-typesexecdependenciesfixed-widthdirectorytraversesnss3Array.prototype.flattenforEachinvariantesawesomesaucepicomatchmrucore-jscliObject.isreuseObject.keysPushSetshellbannercharsetimmerietouchruntimegenericsbusyconcurrencyreducerprotoshimArray.prototype.findLastIndexmake dirzeroinqsexpressiondotenvmime-dbUint8ClampedArrayfilterstyleguideES2016__proto__Array.prototype.includesdescriptionpostcss-pluginsetPrototypeOflinewraptapenvironmentsstringimmutablebuffersObject.getPrototypeOfloadbalancingchaivalueInt8ArraypolyfillwraplanguageargumentarttrimEndboundtrimLeftperformanceregular expressionsbrowserslisttoSorted3dglobalsECMAScript 2015routedeep-copyshamcolorstoStringTagformes6parentsassertfastObject.fromEntriestypescriptconfigdescriptorssometypedserializationstreams2modulestoolscallbackString.prototype.matchAllreduxmocharmdirmatchesflagshardlinkswhichtypedarraysformssimpledbxhrfunction.lengthObservableregexpcssansiInt16ArraystarterentriesuninstallvarssameValueZerocloudformationidleurlrdsbeanstalkiteratorhelperflatMapcommandexpressloggingfetchObservablesCSSStyleDeclarationtesterflagcodesfunctionalstartstylingexewordwrapperformantsharedlinkutilscheme-validationstylesArray.prototype.flatcall-boundframeworkterminales7ec2mimetypesarraybufferpropertiestextArraycollectionECMAScript 2022termpackage.jsonES3css-in-jsrangeerrorajvclass-validatorwafdirdeepcopyextendMicrosoftpipeutilitygroupidlook-upfindLastcallboundttybyteprogressopenerlintsymbolsmovePromiseio-tsspringjQueryidentifierscensorthreecheckcharactersES2021lockfilesortedinstallerspecArray.prototype.filterassertsbundlingRegExp.prototype.flagsWebSocketjsmulti-packagewritees-shimskoreancachedom-testing-libraryintrinsicpositiveparsercompare
3.6.82

5 months ago

3.6.79

5 months ago

3.6.78

5 months ago

3.6.81

5 months ago

3.6.80

5 months ago

3.6.77

5 months ago

3.6.76

5 months ago

3.6.75

5 months ago

3.6.74

5 months ago

3.6.73

5 months ago

3.6.72

5 months ago

3.6.69

5 months ago

3.6.68

5 months ago

3.6.71

5 months ago

3.6.70

5 months ago

3.5.58

6 months ago

3.4.47

6 months ago

3.5.57

6 months ago

3.4.48

6 months ago

3.3.36

6 months ago

3.5.56

6 months ago

3.4.49

6 months ago

3.3.37

6 months ago

3.6.67

5 months ago

3.5.55

6 months ago

3.3.38

6 months ago

3.6.66

5 months ago

3.5.54

6 months ago

3.3.39

6 months ago

3.6.65

5 months ago

3.5.53

6 months ago

3.6.64

5 months ago

3.5.52

6 months ago

3.5.51

6 months ago

3.4.43

6 months ago

3.4.44

6 months ago

3.4.45

6 months ago

3.5.59

6 months ago

3.4.46

6 months ago

3.2.35

6 months ago

3.2.34

7 months ago

3.2.36

6 months ago

3.5.64

5 months ago

3.5.63

5 months ago

3.5.62

5 months ago

3.4.50

6 months ago

3.4.51

6 months ago

3.3.40

6 months ago

3.3.41

6 months ago

3.3.42

6 months ago

3.3.43

6 months ago

3.5.61

6 months ago

3.5.60

6 months ago

2.2.34

7 months ago

2.2.33

7 months ago

2.2.31

7 months ago

2.2.32

7 months ago

2.2.30

7 months ago

2.2.29

7 months ago

2.2.28

7 months ago

2.2.26

7 months ago

2.2.27

7 months ago

1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

2.1.23

7 months ago

2.1.24

7 months ago

2.1.21

7 months ago

2.1.22

7 months ago

2.1.20

7 months ago

2.0.19

7 months ago

2.2.24

7 months ago

2.2.25

7 months ago

2.0.20

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.11

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago