New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

px-render

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

px-render

npm install px-render

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

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

FAQs

Package last updated on 07 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts