Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/porsager/postgres
/ empty
Function
empty
transpile.deno.js:5–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
4
const
std =
'https://deno.land/std@0.132.0/'
5
, empty = x => fs.readdirSync(x).forEach(f => fs.unlinkSync(path.join(x, f)))
6
, ensureEmpty = x => !fs.existsSync(x) ? fs.mkdirSync(x) : empty(x)
7
, root =
'deno'
8
, src = path.join(root,
'src'
)
Callers
1
ensureEmpty
Function · 0.70
Calls
1
forEach
Method · 0.65
Tested by
no test coverage detected