# jzendo-mina-page

> Add `computed` field supported for MINA `Page` API.

Latest version **2.1.2** (published 2020-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install jzendo-mina-page
pnpm add jzendo-mina-page
yarn add jzendo-mina-page
bun add jzendo-mina-page
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2020-03-28 |
| First published | 2020-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zendo |
| Maintainers | jzendo |
| Keywords | mp, mini program, weixin mp, weixin mini program, wx, weixin, MINA, Page, MINA Page, computed, mp computed, Page with computed |

## Links

- npm: https://www.npmjs.com/package/jzendo-mina-page
- Repository: https://jzendo@github.com/jzendo/Page
- Homepage: https://github.com/jzendo/Page#readme
- Issues: https://github.com/jzendo/Page/issues
- npm.io page: https://npm.io/package/jzendo-mina-page

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 2.1.2 (latest) — 2020-03-28
- 2.1.0 — 2020-03-28
- 2.0.2 — 2020-03-28
- 2.0.1 — 2020-03-28
- 2.0.0 — 2020-03-27
- 1.0.0 — 2020-03-27

## README

# Page

Add `computed` field supported for MINA `Page` API.

Read [Page](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html) for more.

## Using

```javascript

// Import
const Page2 = require('jzendo-mina-page')

// Using like `Page`
Page2({
    data: {
      firstName: 'bill',
      lastName: 'gates'
    },

    // Computed fields here
    computed: {
      fullname: function () {
        const {firstName, lastName} = this.data
        // Output: `Bill Gates`
        return `${firstName.charAt(0).toUpperCase() + firstName.slice(1)} ${lastName.charAt(0).toUpperCase() + lastName.slice(1)}`
      }
    }
})

```

Wow, so easy! is it ?

## TODO

Well, i just use dirty check, but not so bad! I will opt in future.

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