MCPcopy 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

11const BaseCommand = require('../base-cmd.js')
12
13const posixPath = p => p.split('\\').join('/')
14
15class Init extends BaseCommand {
16 static description = 'Create a package.json file'

Callers 1

setWorkspaceMethod · 0.85

Calls 2

joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected