Urara-Blog/node_modules/.pnpm-store/v3/files/c4/734573b546ba039dff170369ccf3ffebc182c86ec2c52fb20b657bfd10b6f9e380d380a0ce70f4a56076d2b6b3213a0e43bc9166e22871c280a382f2ad027f
2022-08-14 01:14:53 +08:00

18 lines
430 B
Text

/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import {FileDetails} from '../types';
import {getStringHash} from './get-string-hash';
export function getStringDetails(url: string, str: string): FileDetails {
return {
file: url,
hash: getStringHash(str),
size: str.length,
};
}