
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@rbxts-js/pretty-format
Advanced tools
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
Stringify any Luau value
prettyFormat
doesn't distinguish between Tables
, Arrays
, Objects
, etc. and prints out all Lua table-like types as Table
.
Table {}
and an array with values is printed as Table {1, 2, 3,}
.printComplexValue
is reduced to just arrays and tables.prettyFormat
are not implemented yet.prettyFormat
formats Roblox DateTime
objects as a replacement for JS Date
.nil
, nan
and inf
over the JS null
, NaN
and Infinity
. The tests are modified accordingly.Symbol
, named Function
, Error
, Date
, BigInt
, etc.getConfig
is rewritten to avoid ternary operators.
loop is rewritten with a for
loop instead of an iterator.next()
.Collections.lua
deviates from upstream substantially since Lua only has tables. We only have two functions: printTableEntries
for formatting key, value pairs and printListItems
for formatting arrays.FAQs
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
The npm package @rbxts-js/pretty-format receives a total of 439 weekly downloads. As such, @rbxts-js/pretty-format popularity was classified as not popular.
We found that @rbxts-js/pretty-format demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.