UNPKG
@clickup/pg-microsharding
Version:
latest (2.27.1)
2.27.1
2.24.5
2.24.4
2.24.3
2.24.2
2.24.1
2.23.4
2.23.3
2.22.3
2.22.2
2.22.1
2.20.2
2.20.1
2.19.3
2.19.2
2.19.1
2.18.1
2.16.2
2.16.1
2.15.1
2.14.2
2.13.1
2.12.7
2.12.6
2.12.4
2.12.2
2.12.1
Microshards support for PostgreSQL
github.com/clickup/pg-microsharding
clickup/pg-microsharding
@clickup/pg-microsharding
/
src
/
internal
/
prependDate.ts
8 lines
(7 loc)
•
209 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
function
prependDate
(
lines
:
string
[]
):
string
{
const
date =
new
Date
() .
toString
() .
replace
(
/ GMT.*/
,
""
) .
replace
(
/ \(.*/
,
""
);
return
lines.
join
(
"\n"
).
replace
(
/^/gm
,
`[
${date}
] `
); }