astw

WebJar for astw

Лицензия

Лицензия

MIT
Группа

Группа

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

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

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

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

2.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

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

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

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

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

https://github.com/substack/astw

Скачать astw

Имя Файла Размер
astw-2.2.0.pom
astw-2.2.0.jar 6 KB
astw-2.2.0-sources.jar 22 bytes
astw-2.2.0-javadoc.jar 22 bytes
Обзор

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : acorn jar [4.0.3,5)

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

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

astw

walk the ast

browser support

build status

This module is a faster version of falafel that only does ast walking and .parent tracking, not source transforms.

example

var astw = require('astw');
var deparse = require('escodegen').generate;
var walk = astw('4 + beep(5 * 2)');

walk(function (node) {
    var src = deparse(node);
    console.log(node.type + ' :: ' + JSON.stringify(src));
});

methods

var astw = require('astw')

var walk = astw(src, opts={})

Return a walk() function from the source string or ast object src.

Optionally:

  • opts.ecmaVersion - default: 8

walk(cb)

Walk the nodes in the ast with cb(node) where node is each element in the ast from esprima but with an additional .parent reference to the parent node.

install

With npm do:

npm install astw

license

MIT

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

Версия
2.2.0
2.0.0