UNPKG
commit-history-for-file
Version:
latest (1.0.0)
1.0.0
returns the filesize history (in kb) for a given file on github
commit-history-for-file
/
src
/
index.js
12 lines
(9 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
async
from
'async'
import
historic
from
'./get-history'
import
getSize
from
'./get-size'
function
getSizes
(
url, callback
) {
historic
(url,
(
err, urls
) =>
{
async
.
map
(urls, getSize, callback) }) }
export
default
getSizes