Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ posixPath
Function
posixPath
deps/npm/lib/commands/init.js:13–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
const
BaseCommand = require(
'../base-cmd.js'
)
12
13
const
posixPath = p => p.split(
'\\'
).join(
'/'
)
14
15
class
Init extends BaseCommand {
16
static description =
'Create a package.json file'
Callers
1
setWorkspace
Method · 0.85
Calls
2
join
Method · 0.45
split
Method · 0.45
Tested by
no test coverage detected