package
No description provided.
npm install @pierre/diffsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Latest published Nov 4, 2026
beta
imownbey
imownbey@gmail.com
@pierre/diffs is an open source diff and file rendering library that uses
Shiki with its JavaScript regex engine by default, with
optional Shiki WebAssembly and Highlights backends. It's super customizable and
packed with the features you need. Made with love by
The Pierre Computer Company. Available as vanilla
JavaScript and React components.
View examples and read documentation on Diffs.com.
font-feature-settingspnpm add @pierre/diffsInstall the agent skill for this package with the Skills CLI:
npx skills add pierrecomputer/pierre --skill diffsWe use pnpm for workspace package management and Bun for tests.
# From the root of the monorepo: setup dependencies
pnpm install
# Start the demo vite test server
moonx demo:dev
# To run the docs (diffs site)
moonx docs:dev-diffs# Run tests and related command from within the package directory
bun test
# Update snapshots
bun test --update-snapshots
# Type checking
moonx diffs:typecheckTests are located in the test/ folder and use Bun's native testing framework
with snapshot support.
Applicable to the Pierre team only.
# You may need to login first:
pnpm login
# Always run publish from within the package directory.
cd packages/diffs
pnpm publish
# In a CI-marked shell: CI= pnpm publishThe diff UI uses an SVG sprite built from @pierre/icons. From the monorepo
root:
moonx root:iconsThis reads SVGs from node_modules/@pierre/icons/svg and writes
packages/diffs/src/sprite.ts. Run after updating @pierre/icons or changing
sprite.config.js.
Estimated unpacked size across 38 packages.
26.7 MB
Includes dependencies.
7 direct · 2 outdated
9.0.0
9.0.0
^3.0.0 || ^4.0.0
4.6.0
0.4.1
0.4.1
2.0.0
2.0.0
1.0.2
1.0.2
9.0.5
9.0.6
0.4.0
0.5.1