New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

git-objectids

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-objectids

Get all object-ids from a git repository.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

git-objectids

Get all object-ids from a git repository.

API

Callback

"use strict";

var gitObjectIds = require('git-objectids');

gitObjectIds("/path/to/git-repo/", function(err, files) {
/*
	err: undefined,
	files: [
		'd81cc0710eb6cf9efd5b920a8453e1e07157b6cd',
		'1783cee7467c5d9b5bbce02e349b6a0b3eb28126'
	]
*/
});

Promise

"use strict";

var gitObjectIds = require('git-objectids');

gitObjectIds("/path/to/git-repo/")
.then(function(files) {
/*
	files: [
		'd81cc0710eb6cf9efd5b920a8453e1e07157b6cd',
		'1783cee7467c5d9b5bbce02e349b6a0b3eb28126'
	]
*/
});

Caveat

Packs are not supported.

License

MIT © Christoph Häfner

Keywords

git

FAQs

Package last updated on 12 Jan 2017

Did you know?

Socket

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.

Install

Related posts