MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / asUnix

Function asUnix

src/windsurf-api.js:188–193  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

186
187 // Unix timestamps may be numeric or string depending on server version.
188 const asUnix = (v) => {
189 if (v == null) return null;
190 if (typeof v === 'number') return v;
191 const n = parseInt(v, 10);
192 return Number.isFinite(n) ? n : null;
193 };
194
195 const out = {
196 planName: plan.planName || 'Unknown',

Callers 1

normalizeUserStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected