UNPKG
@publint/pack
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Utilities for packing and unpacking npm packages
github.com/publint/publint
publint/publint
@publint/pack
/
src
/
node
/
utils.js
10 lines
(8 loc)
•
279 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
fs
from
'node:fs/promises'
import
path
from
'node:path'
import
os
from
'node:os'
export
async
function
getTempPackDir
(
) {
const
tempDir = os.
tmpdir
() + path.
sep
const
tempPackDir =
await
fs.
mkdtemp
(tempDir +
'publint-pack-'
)
return
await
fs.
realpath
(tempPackDir) }