npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kidhwa

v1.0.6

Published

kid height weight month gender calculate analysis

Downloads

2

Readme

kidhwa

根据幼儿测试身高体重与幼儿年龄性别计算出幼儿身体发育指标数据

Installation

$ npm install kidhwa


const CalcKidHW = require('kidhwa');

let data = CalcKidHW(month, gender, height, weight);

变量|名称|参数 -----|------|----- month | 月龄 | 整数 gender | 性别 | 1:女,2:男 height | 身高 | cm weight | 体重 | kg

例如

console.log(CalcKidHW(41, 1, 103.4, 16.3));
输出:
[
    {
        "type": 1,
        "name": "按年龄测体重",
        "levels": [
            ["p3", "p10", "p20", "p50", "p80", "p97"],
            [12.2, 13.05, 13.6, 14.9, 16.37, 19.08]
        ],
        "value": {
            "op": 4,
            "pos": 3,
            "name": "p50-p80"
        }
    },
    {
        "type": 2,
        "name": "按年龄测身高",
        "levels": [
            ["p3", "p10", "p20", "p50", "p80", "p97"],
            [92.5, 94.5, 95.8, 98.9, 101.5, 106.2]
        ],
        "value": {
            "op": 4,
            "pos": 4,
            "name": "p80-p97"
        }
    },
    {
        "type": 3,
        "name": "按身高测体重",
        "levels": [
            ["p3", "p10", "p20", "p50", "p80", "p97"],
            [13.8, 14.37, 14.88, 16, 17.4, 19.4]
        ],
        "value": {
            "op": 4,
            "pos": 3,
            "name": "p50-p80"
        }
    }, {
        "type": 5,
        "name": "其他:5岁以下儿童(身高别体重)消瘦、超重、肥胖诊断标准",
        "levels": [
            ["正常", "超重+1SD", "轻度肥胖+2SD", "中重肥胖+3SD"],
            [16.1, 17.7, 19.5, 21.6]
        ],
        "value": {
            "op": 4,
            "pos": 0,
            "name": "正常-超重+1SD"
        }
    },
    {
        "type": 7,
        "name": "体重标准值",
        "levels": [
            ["-1sd", "中位数", "+1sd"],
            [13.11, 14.65, 16.43]
        ],
        "value": {
            "op": 4,
            "pos": 1,
            "name": "中位数-+1sd"
        }
    },
    {
        "type": 8,
        "name": "身高标准值",
        "levels": [
            ["-1sd", "中位数", "+1sd"],
            [93.8, 97.5, 101.4]
        ],
        "value": {
            "op": 3,
            "pos": 2,
            "name": ">+1sd"
        }
    }
]

op: 1: 小于, 2: 等于, 3: 大于, 4: 在两个区间内
pos: 在levels中位置