Package Exports
- blamer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (blamer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Blamer
Blamer is a tool for get information about author of code from version control system. Supports git and subversion.
Status
Setup
npm install blamer
Usage
var Blamer = require('blamer'),
// first parameter in Blamer is type of VCS, can be 'svn' or 'git', 'git' used by default
blamer = new Blamer('svn');
// blameByFile return [Promises/A+](https://promisesaplus.com/)
blamer.blameByFile('/path/to/file/in/repo').then(
function (result) {
console.log("Blame json: %j", result);
// will print
// Blame json: {"/path/to/file/in/repo": {
// "1": {
// "rev": "rev",
// "author": "author",
// "date": "2014-10-15T12:33:31.675393Z",
// "line": "1"
// }
// }
// }
},
function (error) {
console.log("Error: %j", error);
// will print
// Error: {
// "error": "error type",
// "message": "error message"
// }
}
);