/
eapostnova
/
2026-1--study--simulation-modeling
Обзор
Документация
Войти
/
eapostnova
/
2026-1--study--simulation-modeling
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
3
CI/CD
Аналитика
Безопасность
develop
node_modules/git-remote-origin-url/index.js
15 строк
349 B
Елизавета Постнова
chore(site): add changelog
06 мар 2026, 00:34
Верифицирован
06 мар 2026, 00:34
8cca814
Код
Авторство
О чём код?
'use strict'; const gitconfig = require('gitconfiglocal'); const pify = require('pify'); module.exports = dir => { return pify(gitconfig)(dir || process.cwd()).then(config => { var url = config.remote && config.remote.origin && config.remote.origin.url; if (!url) { throw new Error('Couldn\'t find origin url'); } return url; }); };