walkes

WebJar for walkes

Лицензия

Лицензия

Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

walkes
Последняя версия

Последняя версия

0.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

walkes
WebJar for walkes
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/Swatinem/walkes

Скачать walkes

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/walkes/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>walkes</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/walkes/
implementation 'org.webjars.npm:walkes:0.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/walkes/
implementation ("org.webjars.npm:walkes:0.2.1")
'org.webjars.npm:walkes:jar:0.2.1'
<dependency org="org.webjars.npm" name="walkes" rev="0.2.1">
  <artifact name="walkes" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='walkes', version='0.2.1')
)
libraryDependencies += "org.webjars.npm" % "walkes" % "0.2.1"
[org.webjars.npm/walkes "0.2.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

walker, texas ranger

very simple walker for estree AST

Build Status Coverage Status Dependency Status

Installation

$ npm install walkes

Or as a component:

$ component install Swatinem/walkes

Compatibility warning

walkes ~ 0.1.0 used to pass in the node as this. This changed with version ~ 0.2.0 which passes it as the first parameter. Please keep that in mind, and sorry for the inconvenience.

Usage

walkes works with an estree spec compatible ast. You are free to choose whichever parser you would like, such as esprima, espree, babel, acorn or others.

walker(espree.parse("…"), {
	MemberExpression: function (node, recurse, stop) {
		// you are responsible to call `recurse()` on all the children yourself
		recurse(node.object);
		recurse(node.property);
		// or use `walker.checkProps` to walk all child properties (also takes care of arrays)
		walker.checkProps(node, recurse);
	},
	default: function (recurse, stop) {
		// call or throw `stop` to completely stop walking.
		stop();
		throw stop;
	}
}, offset);
// when offset is set, will only recurse to nodes that lie within the offset
// esprima option {range: true} needs to be set for this to work

License

LGPL-3.0

Версии библиотеки

Версия
0.2.1