You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
452 B
JavaScript

'use strict';
const parse = require('./');
const gitconfig = {
email: 'email',
'remote "origin"': {
url: 'https://github.com/jonschlinkert/normalize-pkg.git',
fetch: '+refs/heads/*:refs/remotes/origin/*'
},
'branch "master"': {
remote: 'origin', merge: 'refs/heads/master'
},
'branch "dev"': {
remote: 'origin', merge: 'refs/heads/dev', rebase: true
}
};
const config = parse.expandKeys(gitconfig);
console.log(config);