# h-wx-js

> Solve the problem of h5 webpage opening in wechat, input losing focus, and the bottom blank after the ios keyboard is folded up

Latest version **1.1.3** (published 2022-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install h-wx-js
pnpm add h-wx-js
yarn add h-wx-js
bun add h-wx-js
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-05-24 |
| First published | 2021-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hao |
| Maintainers | haojs-next |
| Keywords | browser, h-wx-js, wx-sdk, vue, wx-sdk-js, wx-h5 |

## Links

- npm: https://www.npmjs.com/package/h-wx-js
- Repository: https://github.com/hvuejs/h-wx-js
- Homepage: https://github.com/hvuejs/h-wx-js#readme
- Issues: https://github.com/hvuejs/h-wx-js/issues
- npm.io page: https://npm.io/package/h-wx-js

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2022-05-24
- 1.1.2 — 2022-05-24
- 1.1.1 — 2022-05-24
- 1.1.0 — 2022-05-24
- 1.0.0 — 2021-10-26

## README

# h-wx-js

## Install

```base
npm install h-wx-js

or

yarn add h-wx-js
```


## ES Module

Example for how to import the ES module from another module:

```javascript
import hwx from "h-wx-js";

hwx.watchInput(); // Global listening input

or

import { watchInput } from "h-wx-js";

watchInput();

```

```html

<!-- vue -->
<div>
	<input v-model="value" @blur="changeScroll" />
</div>


<script>

import { fixScroll } from "h-wx-js";

export default {
	data () {
		return {
			value: ""
		}
	},
	methods: {
		changeScroll: function () {
			fixScroll();
		}
	}
}

</script>

```

init ```font-size```

```javascript

// main.js

import { initFontSize } from "h-wx-js";

initFontSize();

```

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