File tree Expand file tree Collapse file tree 8 files changed +44
-0
lines changed Expand file tree Collapse file tree 8 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -434,13 +434,19 @@ A [`TypeError`][] is thrown if `path` is not a string.
434434## ` path.posix `  
435435<!--  YAML
436436added: v0.11.15 
437+ changes: 
438+   - version: REPLACEME 
439+     pr-url: https://github.com/nodejs/node/pull/34962 
440+     description: Exposed as `require('path/posix')` 
437441--> 
438442
439443*  {Object}
440444
441445The ` path.posix `  property provides access to POSIX specific implementations
442446of the ` path `  methods.
443447
448+ The API is accessible via ` require('path').posix `  or ` require('path/posix') ` .
449+ 
444450## ` path.relative(from, to) `  
445451<!--  YAML
446452added: v0.5.0 
@@ -568,13 +574,19 @@ method is non-operational and always returns `path` without modifications.
568574## ` path.win32 `  
569575<!--  YAML
570576added: v0.11.15 
577+ changes: 
578+   - version: REPLACEME 
579+     pr-url: https://github.com/nodejs/node/pull/34962 
580+     description: Exposed as `require('path/win32')` 
571581--> 
572582
573583*  {Object}
574584
575585The ` path.win32 `  property provides access to Windows-specific implementations
576586of the ` path `  methods.
577587
588+ The API is accessible via ` require('path').win32 `  or ` require('path/win32') ` .
589+ 
578590[ MSDN-Rel-Path ] : https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#fully-qualified-vs-relative-paths 
579591[ `TypeError` ] : errors.md#errors_class_typeerror 
580592[ `path.parse()` ] : #path_path_parse_path 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ 
3+ module . exports  =  require ( 'path' ) . posix ; 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ 
3+ module . exports  =  require ( 'path' ) . win32 ; 
Original file line number Diff line number Diff line change 7272      'lib/net.js' ,
7373      'lib/os.js' ,
7474      'lib/path.js' ,
75+       'lib/path/posix.js' ,
76+       'lib/path/win32.js' ,
7577      'lib/perf_hooks.js' ,
7678      'lib/process.js' ,
7779      'lib/punycode.js' ,
Original file line number Diff line number Diff line change 1+ import  '../common/index.mjs' ; 
2+ import  assert  from  'assert' ; 
3+ import  {  posix  }  from  'path' ; 
4+ import  pathPosix  from  'path/posix' ; 
5+ 
6+ assert . strictEqual ( pathPosix ,  posix ) ; 
Original file line number Diff line number Diff line change 1+ import  '../common/index.mjs' ; 
2+ import  assert  from  'assert' ; 
3+ import  {  win32  }  from  'path' ; 
4+ import  pathWin32  from  'path/win32' ; 
5+ 
6+ assert . strictEqual ( pathWin32 ,  win32 ) ; 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ 
3+ require ( '../common' ) ; 
4+ const  assert  =  require ( 'assert' ) ; 
5+ 
6+ assert . strictEqual ( require ( 'path/posix' ) ,  require ( 'path' ) . posix ) ; 
Original file line number Diff line number Diff line change 1+ 'use strict' ; 
2+ 
3+ require ( '../common' ) ; 
4+ const  assert  =  require ( 'assert' ) ; 
5+ 
6+ assert . strictEqual ( require ( 'path/win32' ) ,  require ( 'path' ) . win32 ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments