
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Features:
To begin, you'll need to install fluent-git:
npm install fluent-git
or if you use yarn
yarn add fluent-git
tl;dr -- see example on each operation or handler
import { notes } from "fluent-git";
notes([text|][,options]) is a function that take 2 arguments and both of them are optional:
text - string that can be either SHA-1, HEAD, or notes.options - string that point to --ref. Or Object which represent the Options.text is undefinednotes()[handler](...)[operation](...)
// or
notes({
...Options
})[handler](...)[operation](...)
// in case you need autocompletion in typescript
const $notes = notes() as NoteUse.Manually
add, overwriteWith, copyFrom, append, remove, showat, atCommit, atFile, atFolder
text is a notes (not identified as string HEAD or hash)notes('some long notes')[operation][handler](...)
// in case you need autocompletion in typescript
const $notes = notes('some long notes') as NoteUse.Text
add, overwrite, copy, appendat, atCommit, atFile, atFolder
text is a hash stringconst sha = '69f3c3d' // or 'HEAD'
notes(sha)[operation](...)
// in case you need autocompletion in typescript
const $notes = notes('69f3c3d') as NoteUse.Hash
add, overwriteWith, copyFrom, append, remove, showat, atCommit, atFile, atFolder
addstringHEADExample
notes().at(sha).add("some long notes");
notes("some long notes").add.at(sha);
notes("af23339").add("some long notes");
removeExample
notes().at(sha).remove();
notes("af23339").remove();
showstringExample
mynotes1 = notes().at(sha).show();
mynotes2 = notes("af23339").show();
console.log(String(mynotes1 + "\n" + mynotes2));
appendstringHEADExample
notes().at(sha).append("some long notes");
notes("some long notes").append.at(sha);
notes("af23339").append("some long notes");
overwrite or overwriteWithstringHEADExample
const sourceNotes = "HEAD";
notes().at(sha).overwriteWith("some long notes");
notes().at(sha).overwriteWith(sourceNotes);
notes("some long notes").overwrite.at(sha);
notes("af23339").overwriteWith("some long notes");
notes("af23339").overwriteWith(sourceNotes);
copy or copyFromstringHEADExample
notes().at(sha).copyFrom("b0279ab");
notes("some long notes").copy.at("af23339"); // same as `add` operation
notes("af23339").copyFrom("b0279ab");
at(sha)stringHEADExample
notes().at("af23339").show();
notes().at("HEAD").show();
atCommit(message)stringExample
notes().atCommit("Initial commit").show();
atFile(filename, commit)stringstring./) but not with absolute pathExample
notes().atFile("README.md", "Initial commit").show();
notes().atFile("README.md", "af23339").show();
notes().atFile("packages/mod1/README.md", "HEAD").show();
atFolder(folder, commit)stringstring./ and suffix '/'Example
notes().atFolder("src", "Initial commit").show();
notes().atFolder("src", "af23339").show();
notes().atFolder("packages/mod1/src", "HEAD").show();
The options are the combination of execa options plus this:
{
ref: String; // represent flag --ref in git-notes
}
FAQs
A JS/TS library to use git fluently 😎
We found that fluent-git demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.