https://github.com/flex-development/esast-util-from-code
esast utility to parse source code
https://github.com/flex-development/esast-util-from-code
ast esast javascript js syntax-tree ts typescript unist
Last synced: 4 months ago
JSON representation
esast utility to parse source code
- Host: GitHub
- URL: https://github.com/flex-development/esast-util-from-code
- Owner: flex-development
- License: bsd-3-clause
- Created: 2024-03-22T01:57:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T11:04:55.000Z (about 1 year ago)
- Last Synced: 2024-05-01T09:40:36.463Z (about 1 year ago)
- Topics: ast, esast, javascript, js, syntax-tree, ts, typescript, unist
- Language: JavaScript
- Homepage: https://github.com/flex-development/esast-util-from-code
- Size: 1.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# esast-util-from-code
[](https://github.com/flex-development/esast-util-from-code/releases/latest)
[](https://npmjs.com/package/@flex-development/esast-util-from-code)
[](https://codecov.io/gh/flex-development/esast-util-from-code)
[](https://github.com/voxpelli/badges-cjs-esm)
[](LICENSE.md)
[](https://conventionalcommits.org/)
[](https://typescriptlang.org/)
[](https://vitest.dev/)
[](https://yarnpkg.com/)[esast][esast] utility to parse source code
## Contents
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
- [API](#api)
- [Related](#related)
- [Contribute](#contribute)## What is this?
**TODO**: what is this?
## When should I use this?
**TODO**: when should i use this?
## Install
This package is [ESM only][esm].
In Node.js (version 18+) with [yarn][yarn]:
```sh
yarn add @flex-development/esast-util-from-code
```
See Git - Protocols | Yarn
for details regarding installing from Git.
In Deno with [`esm.sh`][esmsh]:
```ts
import { fromCode } from 'https://esm.sh/@flex-development/esast-util-from-code'
```In browsers with [`esm.sh`][esmsh]:
```html
import { fromCode } from 'https://esm.sh/@flex-development/esast-util-from-code'
```
## Use
**TODO**: use
## API
**TODO**: api
## Related
- [`esast-util-attach-comments`][esast-util-attach-comments] — attach comments to the tree
## Contribute
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
This project has a [code of conduct](CODE_OF_CONDUCT.md). By interacting with this repository, organization, or
community you agree to abide by its terms.[esast-util-attach-comments]: https://github.com/flex-development/esast-util-attach-comments
[esast]: https://github.com/flex-development/esast
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[esmsh]: https://esm.sh/
[yarn]: https://yarnpkg.com