# Installation

F2 can be installed via npm. It is recommended to get F2 this way.

### npm

[![npm](https://camo.githubusercontent.com/094118d2be66144ef9addd3d98b7e67743178264/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f40616e74762f66322e7376673f7374796c653d666c61742d737175617265266d61784167653d363030)](https://npmjs.com/package/@antv/f2) [![npm](https://camo.githubusercontent.com/f717a9c733ad7b7ed8c7501355a5a611a1c5121e/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f40616e74762f66322e7376673f7374796c653d666c61742d737175617265266d61784167653d363030)](https://npmjs.com/package/@antv/f2)

```bash
npm install @antv/f2 --save
```

### Import in Browser

Add script and link tags in your browser and use the global variable `F2`.

```markup
<script src="https://gw.alipayobjects.com/os/antv/assets/f2/3.2.3/f2.js"></script>
```

You can also download these files directly from [unpkg](https://unpkg.com/@antv/f2).

### Github

You can download the latest version of [F2 on GitHub](https://github.com/antvis/f2/releases/latest).
