aster-parse

2019-09-13 admin

aster-parse是什么

什么是aster-parse,Centralized code parsing for aster.

aster-parse使用教程帮助文档

aster-parse

NPM version Build Status

Centralized code parsing for aster.

Usage

This is mostly internal module that you don’t want to use directly but rather as part of aster-src. However, you should use it directly when developing bindings for external build systems.

API

parse(options)

options.loc

Type: Boolean Default: true

Location tracking (required for source maps; common option for all the parsers).

options.*

Any other options for parsers being used (see corresponding documentation of each parser).

parse.registerParser(extension, parser)

Method for registering parser as processor for any files with given extension:

var parse = require('aster-parse');
parse.registerParser('.coffee', require('aster-parse-coffee'));

Please note that parsers published under name in format 'aster-parse-<extension>' do not require explicit registration.

License

MIT License

你可能感兴趣的文章:

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75034.html

文章标题:aster-parse

回到顶部