# shift-ast

> constructors for the Shift AST format

Latest version **7.0.0** (published 2022-04-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install shift-ast
pnpm add shift-ast
yarn add shift-ast
bun add shift-ast
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2022-04-27 |
| First published | 2014-12-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 167.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Shape Security |
| Maintainers | michaelficarra, bakkot, shapesecurity |
| Keywords | Shift, AST, node, constructor, class, abstract, syntax, tree |

## Links

- npm: https://www.npmjs.com/package/shift-ast
- Repository: https://github.com/shapesecurity/shift-ast-js
- Issues: https://github.com/shapesecurity/shift-ast-js/issues
- npm.io page: https://npm.io/package/shift-ast

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 7.0.0 (latest) — 2022-04-27
- 6.1.0 — 2020-05-21
- 6.0.1 — 2019-09-04
- 6.0.0 — 2019-03-22
- 5.0.0 — 2018-10-10
- 4.0.0 — 2016-06-10
- 3.1.0 — 2016-03-19
- 3.0.0 — 2016-01-26
- 1.1.0 — 2015-02-12
- 1.0.3 — 2015-01-15
- 1.0.2 — 2014-12-29
- 1.0.1 — 2014-12-18
- 1.0.0 — 2014-12-16

## README

Shift AST Constructors
======================


## About

This project provides constructors for
[Shift format](https://github.com/shapesecurity/shift-spec) AST nodes.

The resulting objects are suitable for use with the rest of the [Shift suite](http://shift-ast.org/).

There is a version with typechecking available as `shift-ast/checked` for use during development.

## Status

[Stable](http://nodejs.org/api/documentation.html#documentation_stability_index).


## Installation

```sh
npm install shift-ast
```


## Usage

```js
var AST = require("shift-ast"); // or "shift-ast/checked"
var myAstFragment = new AST.LabeledStatement({
  label: "label",
  body: new AST.EmptyStatement
});
```


## Contributing

* Open a Github issue with a description of your desired change. If one exists already, leave a message stating that you are working on it with the date you expect it to be complete.
* Fork this repo, and clone the forked repo.
* Install dependencies with `npm install`.
* Build and test in your environment with `npm run build && npm test`.
* Create a feature branch. Make your changes. Add tests.
* Build and test in your environment with `npm run build && npm test`.
* Make a commit that includes the text "fixes #*XX*" where *XX* is the Github issue.
* Open a Pull Request on Github.


## License

    Copyright 2014 Shape Security, Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

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