# scope-tree

> Module scope tree for CodeInspector

Latest version **0.3.0** (published 2022-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install scope-tree
pnpm add scope-tree
yarn add scope-tree
bun add scope-tree
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2022-02-21 |
| First published | 2021-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kippis, firetux |
| Keywords | scope, scopetree, scope-tree, code-inspector |

## Links

- npm: https://www.npmjs.com/package/scope-tree
- npm.io page: https://npm.io/package/scope-tree

## Dependencies (1)

- [firescript-runtime](https://npm.io/package/firescript-runtime.md) ^0.3.13

## Recent versions

- 0.3.0 (latest) — 2022-02-21
- 0.2.0 — 2022-02-18
- 0.1.0 — 2022-01-27
- 0.0.0 — 2021-05-30

## README

Scope Tree
==========

### Module scope

```coffee
const moduleScope = new ModuleScope()
moduleScope.addImport('any', 'Banana', Banana)
```


### Function scope

```coffee
const functionScope = new FunctionScope()
functionScope.addVariable('const', 'any', 'banana', 'Banana')
```


### Class scope

```coffee
const classScope = new ClassScope()
classScope.addMethod('any', 'getFruit', [
  ['any', 'name']
])
```

---
_Source: https://npm.io/package/scope-tree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
