Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/third_party/closure-compiler/node-externs/path.js
6174 views
1
/*
2
* Copyright 2012 The Closure Compiler Authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/**
18
* @fileoverview Definitions for node's path module.
19
* @see http://nodejs.org/api/path.html
20
* @externs
21
* @author Daniel Wirtz <[email protected]>
22
*/
23
24
/**
25
BEGIN_NODE_INCLUDE
26
var path = require('path');
27
END_NODE_INCLUDE
28
*/
29
30
/**
31
* @type {Object.<string,*>}
32
*/
33
var path = {};
34
35
/**
36
* @param {string} p
37
* @return {string}
38
* @nosideeffects
39
*/
40
path.normalize = function(p) {};
41
42
/**
43
* @param {...string} var_args
44
* @return {string}
45
* @nosideeffects
46
*/
47
path.join = function(var_args) {};
48
49
/**
50
* @param {string} from
51
* @param {string=} to
52
* @return {string}
53
* @nosideeffects
54
*/
55
path.resolve = function(from, to) {};
56
57
/**
58
* @param {string} from
59
* @param {string} to
60
* @return {string}
61
* @nosideeffects
62
*/
63
path.relative = function(from, to) {};
64
65
/**
66
* @param {string} p
67
* @return {string}
68
* @nosideeffects
69
*/
70
path.dirname = function(p) {};
71
72
/**
73
* @param {string} p
74
* @param {string=} ext
75
* @return {string}
76
* @nosideeffects
77
*/
78
path.basename = function(p, ext) {};
79
80
/**
81
* @param {string} p
82
* @return {string}
83
* @nosideeffects
84
*/
85
path.extname = function(p) {};
86
87
/**
88
* @type {string}
89
*/
90
path.sep;
91
92