Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 824 Bytes

version.md

File metadata and controls

28 lines (22 loc) · 824 Bytes
title sidebar_label
version
version

Return the version number of isomorphic-git

param type [= default] description
return string the version string taken from package.json at publication time

I don't know why you might need this. I added it just so I could check that I was getting the correct version of the library and not a cached version.

Example Code:

console.log(git.version())
<script> (function rewriteEditLink() { const el = document.querySelector('a.edit-page-link.button'); if (el) { el.href = 'https://github.com/isomorphic-git/isomorphic-git/edit/master/src/commands/version.js'; } })(); </script>