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

sp-tnt

v1.0.1

Published

TNT radius calc

Downloads

2

Readme

TNT

Usage

  //tntRadius(TNT重量)
  const tntRadius = require('./calcRadius')
  // return {r0, r1, r2, r3}

  //tntWeight(转换物质重量, 转换物质燃烧热/爆热,是否是固体物质[固体爆热,液体气体燃烧热] = true)
  const tntWeight = require('./calcTNT')

  //tntPower(TNT重量, 是否是转换的TNT重量 = false)
  const tntPower = require('./calcPower')

  let weight = 1;
  let calcWeight = tntWeight(weight, 4520, 1)
  console.log(`折合TNT含量:${calcWeight}千克`)
  console.log(`爆炸总能量:${tntPower(calcWeight)}kj`)
  console.log(`折合TNT总能量:${tntPower(calcWeight, false)}kj`)
  console.log(`爆炸死亡半径:${tntRadius(calcWeight).r0}米`)
  console.log(`爆炸重伤半径:${tntRadius(calcWeight).r1}米`)
  console.log(`爆炸轻伤半径:${tntRadius(calcWeight).r2}米`)
  console.log(`爆炸损失半径:${tntRadius(calcWeight).r3}米`)

常见凝聚相含能材料爆炸炸药的爆热

| 物质名 | 爆热(kj/kg) | | --- | --- | | TNT | 4520 | 硝化甘油|6700 黑索今(ROX)|5630 太安(PETN)|5800 B炸药(60%RDX,40%TNT)|5190 喷托里特(50%PETN,5%TNT)|5110 C-4炸药(91%RDX,9%塑料粘接剂)|4870 苦味酸|4180 奥克托今(HMX)|5680 叠氮化银|1890 叠氮化铅|1540 特屈儿|4520 斯蒂芬酸铅|1910 奥克托尔(50%TNT,30%HMX)|4500 雷汞|1790

部分物质的燃烧热

| 物质名 | 燃烧热(kj/kg) | | --- | --- | | 汽油 | 44000 | 甲苯|42381 丙烯腈|33127 甲醇|22690 甲醛|78088 苯|41792 苯乙烯|42029 丙烷|50290 溴甲烷|8101 二硫化碳|13538