mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:49:29 +08:00
18 lines
430 B
Text
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,
|
|
};
|
|
}
|