MCPcopy Create free account
hub / github.com/pastelsky/bundlephobia / encodeFirebaseKey

Function encodeFirebaseKey

utils/index.js:3–7  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

1// Firebase does not accept a
2// few special characters for keys
3function encodeFirebaseKey(key) {
4 return key
5 .replace(/[.]/g, ',')
6 .replace(/\//g, '__')
7}
8
9function decodeFirebaseKey(key) {
10 return key

Callers 2

setRecentSearchMethod · 0.70
getPackageHistoryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected