UNPKG

364 BJavaScriptView Raw
1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9const getStringHash = require('./get-string-hash');
10
11module.exports = (url, string) => {
12 return {
13 file: url,
14 hash: getStringHash(string),
15 size: string.length,
16 };
17};