@hugoalh/pressure

An ECMAScript (JavaScript & TypeScript) module to convert between units of the pressure.

https://github.com/hugoalh/pressure-es

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.3%) to scientific vocabulary

Keywords

conversion convert ecmascript ecmascript-module es es-module esm esmodule javascript js pressure scale scales ts typescript unit units
Last synced: 4 months ago · JSON representation ·

Repository

An ECMAScript (JavaScript & TypeScript) module to convert between units of the pressure.

Basic Info
  • Host: GitHub
  • Owner: hugoalh
  • License: other
  • Language: TypeScript
  • Default Branch: main
  • Homepage:
  • Size: 371 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 11
Topics
conversion convert ecmascript ecmascript-module es es-module esm esmodule javascript js pressure scale scales ts typescript unit units
Created over 3 years ago · Last pushed 5 months ago
Metadata Files
Readme Contributing License Citation Codeowners Security

README.md

Pressure (ES)

⚖️ MIT

GitHub: hugoalh/pressure-es JSR: @hugoalh/pressure NPM: @hugoalh/pressure

An ECMAScript (JavaScript & TypeScript) module to convert between units of the pressure.

These units of the pressure are supported:

| | | Names | Symbols | |:-:|:--|:--|:--| | [SI] | Pascal | Pascal | Pa | | | Bar | Bar | bar | | | Pound Per Square Inch | Pound Per Square Inch | psi | | | Standard Atmosphere | Standard Atmosphere | atm | | | Technical Atmosphere | Technical Atmosphere | at | | | Torr | Torr | Torr |

🔰 Begin

🎯 Targets

| Targets | Remote | JSR | NPM | |:--|:-:|:-:|:-:| | Bun >= v1.1.0 | ❌ | ✔️ | ✔️ | | Deno >= v2.1.0 | ✔️ | ✔️ | ✔️ | | NodeJS >= v20.9.0 | ❌ | ✔️ | ✔️ |

[!NOTE] - It is possible to use this module in other methods/ways which not listed in here, however those methods/ways are not officially supported, and should beware maybe cause security issues.

#️⃣ Resources Identifier

  • Remote - GitHub Raw: https://raw.githubusercontent.com/hugoalh/pressure-es/{Tag}/mod.ts
  • JSR: [jsr:]@hugoalh/pressure[@{Tag}]
  • NPM: [npm:]@hugoalh/pressure[@{Tag}]

[!NOTE] - For usage of remote resources, it is recommended to import the entire module with the main path mod.ts, however it is also able to import part of the module with sub path if available, but do not import if:

  • it's path has an underscore prefix (e.g.: _foo.ts, _util/bar.ts), or
  • it is a benchmark or test file (e.g.: foo.bench.ts, foo.test.ts), or
  • it's symbol has an underscore prefix (e.g.: _bar, _foo).

These elements are not considered part of the public API, thus no stability is guaranteed for them. - For usage of JSR or NPM resources, it is recommended to import the entire module with the main entrypoint, however it is also able to import part of the module with sub entrypoint if available, please visit the file jsr.jsonc property exports for available sub entrypoints. - It is recommended to use this module with tag for immutability.

🛡️ Runtime Permissions

This module does not request any runtime permission.

🧩 APIs

  • ts class Pressure { constructor(fromValue: number, fromUnit?: PressureUnitsInputs); toObject(): Record<PressureUnitsSymbolASCII, number>; toString(toUnit?: PressureUnitsInputs): string; toValue(toUnit?: PressureUnitsInputs): number; static unit(unit?: PressureUnitsInputs): PressureUnitMeta; static units(): PressureUnitMeta[]; }

[!NOTE] - For the full or prettier documentation, can visit via: - Deno CLI deno doc - JSR

✍️ Examples

  • ts new Pressure(1, "Bar").toValue(); //=> 100000
  • ts new Pressure(1, "Bar").toString(); //=> "100000 Pa"
  • ts new Pressure(100000).toValue("Bar"); //=> 1
  • ts new Pressure(100000).toString("Bar"); //=> "1 bar"

📚 Guides

Owner

  • Name: hugoalh
  • Login: hugoalh
  • Kind: user
  • Location: Everywhere
  • Company: @hugoalh-studio

Lead of @hugoalh-studio; Full time software developer; Part time freelancer

Citation (CITATION.cff)

# yaml-language-server: $schema=https://citation-file-format.github.io/1.2.0/schema.json
cff-version: "1.2.0"
title: "Pressure (ES)"
message: "If you use this software, please cite it using the metadata from this file."
type: "software"
authors:
  - name: "hugoalh"
repository-code: "https://github.com/hugoalh/pressure-es"
keywords:
  - "conversion"
  - "convert"
  - "ecmascript"
  - "ecmascript-module"
  - "es"
  - "es-module"
  - "esm"
  - "esmodule"
  - "javascript"
  - "js"
  - "pressure"
  - "scale"
  - "scales"
  - "ts"
  - "typescript"
  - "unit"
  - "units"
license: "MIT"

GitHub Events

Total
  • Release event: 2
  • Delete event: 3
  • Issue comment event: 3
  • Push event: 7
  • Pull request event: 7
  • Create event: 4
Last Year
  • Release event: 2
  • Delete event: 3
  • Issue comment event: 3
  • Push event: 7
  • Pull request event: 7
  • Create event: 4

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 0
  • Total pull requests: 128
  • Average time to close issues: N/A
  • Average time to close pull requests: 6 days
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.2
  • Merged pull requests: 26
  • Bot issues: 0
  • Bot pull requests: 128
Past Year
  • Issues: 0
  • Pull requests: 8
  • Average time to close issues: N/A
  • Average time to close pull requests: 21 days
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.75
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 8
Top Authors
Issue Authors
Pull Request Authors
  • dependabot[bot] (123)
Top Labels
Issue Labels
Pull Request Labels
Type/Dependency 📦 (123) Status/Pending 🔵 (99) Platform/NodeJS (55) Platform/GitHubActions (23) Priority/Low 🟢 (22)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 29 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 11
  • Total maintainers: 1
npmjs.org: @hugoalh/pressure

A module to convert between units of the pressure.

  • Versions: 11
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 29 Last month
Rankings
Downloads: 12.4%
Dependent packages count: 16.2%
Average: 19.3%
Forks count: 20.5%
Stargazers count: 22.1%
Dependent repos count: 25.3%
Maintainers (1)
Last synced: 4 months ago

Dependencies

package-lock.json npm
  • 113 dependencies
package.json npm
  • eslint ^8.23.1 development
  • eslint-plugin-only-warn ^1.0.3 development
  • typescript ^4.8.3 development
.github/workflows/analyze-codeql.yml actions
  • actions/checkout v3.3.0 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/analyze-ghsl.yml actions
  • actions/checkout v3.3.0 composite
  • github/super-linter v4.10.1 composite
.github/workflows/announce-newrelease-discord.yml actions
  • hugoalh/send-discord-webhook-ghaction v5.0.0 composite
.github/workflows/publish-npm.yml actions
  • actions/checkout v3.3.0 composite
  • actions/setup-node v3.6.0 composite
.github/workflows/scan-virus.yml actions
  • actions/checkout v3.3.0 composite
  • hugoalh/scan-virus-ghaction v0.6.4 composite