git-default-branch
Returns Git default branch name
Last updated 5 years ago by sapegin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install git-default-branch 
SYNC missed versions from official npm registry.

git-default-branch

Returns Git default branch name (usually main or master).

Installation

npm install git-default-branch

Usage

const gitDefaultBranch = require('git-default-branch');

console.log(gitDefaultBranch());
// -> main

Changelog

The changelog can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |