4.0.1 • Published 10 months ago

git-ls-remote-pure v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

git-ls-remote-pure

A pure node implementation of git ls-remote for HTTPS repos.

npm node-current

usage:

import lsRemote from 'git-ls-remote-pure';
const ls = await lsRemote('https://github.com/adamburgess/git-ls-remote-pure.git');
/*
{
  HEAD: '02aa2fc2359163dac356c9008482b0ef82556849',
  branches: {
    master: '02aa2fc2359163dac356c9008482b0ef82556849'
  },
  tags: {
    '1.0.0': '33974eb9ed270d2888f5a97d068f9436d1fc863d',
    '2.0.0': '62178b17258d82a764721a4714c5e75628c0d378',
    '2.0.1': '38080f93717dec91134cdb60a6fb9d6dc62301df',
    '2.0.2': '02aa2fc2359163dac356c9008482b0ef82556849'
  },
  refs: {
    HEAD: '02aa2fc2359163dac356c9008482b0ef82556849',
    'refs/heads/master': '02aa2fc2359163dac356c9008482b0ef82556849',
    'refs/tags/1.0.0': '33974eb9ed270d2888f5a97d068f9436d1fc863d',
    'refs/tags/2.0.0': '62178b17258d82a764721a4714c5e75628c0d378',
    'refs/tags/2.0.1': '38080f93717dec91134cdb60a6fb9d6dc62301df',
    'refs/tags/2.0.2': '02aa2fc2359163dac356c9008482b0ef82556849'
  }
}
*/

Need to connect to private repos? Provide an options object with authentication that fetch will understand.

4.0.1

10 months ago

4.0.0

10 months ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago