# @wiajs/core

> wia app core package

Latest version **2.1.0** (published 2026-03-07) · ELv2 license · 0 weekly downloads

## Install

```sh
npm install @wiajs/core
pnpm add @wiajs/core
yarn add @wiajs/core
bun add @wiajs/core
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2026-03-07 |
| First published | 2020-03-08 |
| Weekly downloads | 0 |
| License | ELv2 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 752.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Sibyl Yu |
| Maintainers | sibylyu, walteryu |
| Keywords | core, wia |

## Links

- npm: https://www.npmjs.com/package/@wiajs/core
- Repository: https://github.com/wiajs/wia
- Homepage: https://www.wia.pub/core
- Issues: https://github.com/wiajs/core/issues
- npm.io page: https://npm.io/package/@wiajs/core

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2026-03-07
- 1.2.3 — 2026-03-07
- 1.2.2 — 2025-10-27
- 1.2.1 — 2025-08-17
- 1.1.33 — 2025-07-09
- 1.1.32 — 2025-07-09
- 1.1.31 — 2025-04-18
- 1.1.30 — 2025-04-18
- 1.1.29 — 2025-01-24
- 1.1.28 — 2024-07-11
- 1.1.27 — 2024-07-04
- 1.1.26 — 2024-07-03
- 1.1.25 — 2024-07-03
- 1.1.23 — 2024-07-03
- 1.1.22 — 2024-07-03
- … 45 more at https://npm.io/package/@wiajs/core/versions

## README

English | [��������](./README.CN.md)

# Wia Core

## wia's core libraries

@wiajs/core - are the core libraries of [wia](https://www.wia.pub).

See [wia core](https://www.wia.pub/doc/core.html) documentation for usage examples and available methods.

> Note: This package's part of the code is borrowed from [Framework7](https://github.com/framework7io/framework7). I am forever grateful for the gift they are to the web.

## Install

```bash
$ npm i -D @wiajs/core
```

## Use

To use in code:

```js
import {App, Page} from '@wiajs/core';
```

## Build

You will need Node.js installed on your system.

First, install all required dependencies

```bash
$ npm install
```

To build development version:

```bash
$ npm run build-dev
```

The resulting files are:

1. dist/core.common.js
2. dist/core.common.map
3. dist/core.esm.js
4. dist/core.esm.map
5. dist/core.umd.js
6. dist/core.umd.map

To build production (minified) version:

```bash
$ npm run build
```

The resulting files are:

1. dist/core.common.js
2. dist/core.common.min.js
3. dist/core.esm.js
4. dist/core.esm.min.js
5. dist/core.umd.js
6. dist/core.min.js

The main files are:

1. event.js
2. app.js
3. page.js
4. support.js
5. device.js
6. module.js
7. load.js
8. lazy.js
9. resize.js
10. ajax.js
11. sw.js
12. utils.js

## License

[ELv2](https://www.elastic.co/cn/licensing/elastic-license)

Copyright (c) 2020-present Sibyl Yu

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