# waft

> Waft

Latest version **0.8.3** (published 2024-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install waft
pnpm add waft
yarn add waft
bun add waft
```

Provides the command `wab`.

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.3 |
| Published | 2024-05-31 |
| First published | 2021-04-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 2.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yaozhi.szw |
| Maintainers | yaozhi.szw, louis_kai, aligenie-skill |

## Links

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

## Dependencies (9)

- [ora](https://npm.io/package/ora.md) ^5.1.0
- [nunjucks](https://npm.io/package/nunjucks.md) ^3.2.3
- [waft-json](https://npm.io/package/waft-json.md) ^1.1.7
- [@types/ora](https://npm.io/package/@types/ora.md) ^3.2.0
- [waft-css-lint](https://npm.io/package/waft-css-lint.md) ^1.1.3
- [assemblyscript](https://npm.io/package/assemblyscript.md) ^0.19.18
- [@types/nunjucks](https://npm.io/package/@types/nunjucks.md) ^3.1.3
- [unicorn-compiler](https://npm.io/package/unicorn-compiler.md) ^0.3.7
- [css-property-parser](https://npm.io/package/css-property-parser.md) ^1.0.6

## Recent versions

- 0.8.3 (latest) — 2024-05-31
- 0.8.0-beta-9.8 (beta) — 2024-05-31
- 0.8.2 — 2024-05-31
- 0.8.1 — 2024-05-31
- 0.8.0-beta-9.7 — 2024-05-31
- 0.8.0-beta-9.6 — 2024-05-24
- 0.8.0-beta-9.5 — 2024-03-05
- 0.8.0-beta-9.4 — 2024-03-05
- 0.8.0-beta-9.3 — 2024-03-05
- 0.8.0-beta-9.2 — 2024-02-27
- 0.8.0-beta-9.1 — 2024-02-21
- 0.8.0-beta.15 — 2024-02-21
- 0.8.0-beta-14 — 2024-02-21
- 0.8.0-beta-13 — 2024-02-20
- 0.8.0-beta-12 — 2024-02-20
- … 149 more at https://npm.io/package/waft/versions

## README

<h1 align="center">Waft</h1>

<h5 align="center">v0.7.x</h5>

<div align="center">
Waft是基于WebAssembly的AIoT应用开发框架。
</div>
<br>

## 安装

```bash
npm install waft
```

## cli快速开始

```bash
npm install waft-cli -g
waft init
cd my-project
waft start
```

## 文档

[waft开发者文档](https://www.yuque.com/waft/docs/ubi8k4)

## 示例
```html
<template>
  <div class="container">
    <text class="hello-font">Hello World</text>
  </div>
</template>
<script>
import { JSON } from 'waft-json';
import { genie, window } from 'waft';
export function HelloWaft(): void{
  window.setState(JSON.parseObject(`{
    "title": "powered by waft",
    "from": "Tmall Genie"
  }`));
  window.onshow = (): void =>{
    genie.playTTS('我在，你说', true);
  }
}
</script>
```

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