How to use md5-file

Comprehensive md5-file code examples:

How to use md5-file.default:

87
88
89
90
91
92
93
94
95
96
        }
        if (properties_has_metadata_block ||
            osu_file_beatmap_properties.indexOf(property_settings_1.osu_file_beatmap_property.metadata_beatmap_md5) !== -1) {
            if (!osu_file_data.metadata)
                osu_file_data.metadata = {};
            osu_file_data.metadata.beatmap_md5 = md5_file_1.default.sync(osu_file_path);
        }
        beatmaps.push(osu_file_data);
    }
}

How to use md5-file.sync:

44
45
46
47
48
49
50
51
52
53
54
55
    return str.substr(0, str.lastIndexOf(' ', maxLen));
};


const getMeta = (filepath) => {
    const frontMatter = file(filepath);
    const fileId = md5File.sync(filepath);


    // Setup meta
    const meta = Object.assign({}, frontMatter);
    meta.body = markdown.render(frontMatter.content);