Skip to content

v0.1.18

Compare
Choose a tag to compare
@Brooooooklyn Brooooooklyn released this 23 Aug 13:09
· 13 commits to main since this release
v0.1.18
4b4b95e

Core features:

Blob API

import { Repository } from "@napi-rs/simple-git";

const repo = new Repository(".");

const blob = repo.head().peelToTree()
    .getPath("__test__/repo.spec.mjs")
    .toObject(repo)
    .peelToBlob();

const fileContent = Buffer.from(blob.content()).toString("utf8");

What's Changed

Full Changelog: v0.1.17...v0.1.18