Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ posixPath
Function
posixPath
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
no outgoing calls
Tested by
no test coverage detected