# px-render

> npm install px-render

Latest version **1.0.2** (published 2020-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install px-render
pnpm add px-render
yarn add px-render
bun add px-render
```

Provides the commands `px-start`, `px-tsconfig`.

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-04-07 |
| First published | 2020-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | like_a_doge |

## Links

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

## Dependencies (6)

- [webpack](https://npm.io/package/webpack.md) ^4.42.1
- [ts-loader](https://npm.io/package/ts-loader.md) ^6.2.2
- [typescript](https://npm.io/package/typescript.md) ^3.8.3
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.3.11
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.10.3
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^4.0.2

## Recent versions

- 1.0.2 (latest) — 2020-04-07
- 1.0.1 — 2020-04-04
- 1.0.0 — 2020-04-04

## README

# px-render

## 安装（Installation）

    npm install px-render 

## 用法（Usage）

首先通过 `px-tsconfig` 命令创建 tsconfig 文件
first use `px-tsconfig` create tsconfig file

    npx px-tsconfig

之后创建 `app.ts` 文件进行编码
next create `app.ts` file and code

```javascript
import render from 'px-render'

render((task)=>{
    task
    .size(1000,600)
    .works(4)
    .slice(6000)
    .fn((x,y,w,h)=>new Promise(res=>res([
        x/w*255,y/h*255,255
    ])))
})
```

最后通过 `px-start` 命令执行，并打开 `http://localhost:8080/` 查看结果
finally, use "px-start" and open "http: / / localhost: 8080 /" to view the results

    npx px-start

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