use-node-js 0.0.1

Node.js runtime metadata primitives for RustUse
Documentation
  • Coverage
  • 68.18%
    15 out of 22 items documented1 out of 15 items with examples
  • Size
  • Source code size: 9.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 655.12 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-js
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-node-js

Node.js runtime metadata primitives for RustUse.

The crate lives in crates/use-node-js/, publishes as use-node-js, and exposes the Rust library name use_node_js. The use-node package name already belongs to the RustUse graph set.

Experimental

use-node-js is experimental while use-js remains below 0.3.0.

Example

use use_node_js::{NodePackageManagerPreference, NodeVersion};

let version: NodeVersion = "v20.11.1".parse()?;

assert_eq!(version.major(), 20);
assert_eq!(NodePackageManagerPreference::Pnpm.as_str(), "pnpm");
# Ok::<(), use_node_js::NodeVersionParseError>(())

Scope

  • Node version labels.
  • Runtime and package-manager preference metadata.

Non-goals

  • Running Node.js.
  • Managing installations.
  • Hardcoded current LTS release facts.

License

Licensed under either Apache-2.0 or MIT.