Urara-Blog/node_modules/.pnpm-store/v3/files/bd/9ed25df9fc3311f470c933afa2de0f3fc76c01733ce708249fa9b4ab8863aaaccf870788b3df0e689094dd8ae2b361c765e6aee3c118e577f50b5745f2f854
2022-08-14 01:14:53 +08:00

11 lines
405 B
Text

// warning: extremely hot code path.
// This has been meticulously optimized for use
// within npm install on large package trees.
// Do not edit without careful benchmarking.
const normalizeCache = Object.create(null)
const {hasOwnProperty} = Object.prototype
module.exports = s => {
if (!hasOwnProperty.call(normalizeCache, s))
normalizeCache[s] = s.normalize('NFKD')
return normalizeCache[s]
}