We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b9ec6d commit 5eaf98bCopy full SHA for 5eaf98b
lib/node_modules/@stdlib/process/cwd/lib/browser.js
@@ -3,20 +3,15 @@
3
// MAIN //
4
5
/**
6
-* Returns the current working directory.
7
-*
8
-* ## Notes
9
10
-* - This function assumes a virtual filesystem in a browser environment.
+* Polyfill for returning the current working directory in environments which do not have support for returning the current working directory.
11
*
12
* @returns {string} current working directory
13
14
* @example
15
* var dir = cwd();
16
-* // returns '/path/to/current/working/directory'
+* // returns '/'
17
*/
18
function cwd() {
19
- // TODO: implement
20
return '/';
21
}
22
0 commit comments