Skip to content

Commit 561d504

Browse files
committed
Rename file and update examples
1 parent 9a6c97e commit 561d504

File tree

5 files changed

+14
-22
lines changed

5 files changed

+14
-22
lines changed

lib/node_modules/@stdlib/os/platform/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ var PLATFORM = require( '@stdlib/os/platform' );
5454

5555
if ( PLATFORM === 'win32' ) {
5656
console.log( 'Running on a PC...' );
57-
}
58-
else if ( PLATFORM === 'darwin' ) {
57+
} else if ( PLATFORM === 'darwin' ) {
5958
console.log( 'Running on a Mac...' );
60-
}
61-
else {
59+
} else {
6260
console.log( 'Running on something else...' );
6361
}
6462
```

lib/node_modules/@stdlib/os/platform/docs/types/index.d.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,18 @@
2525
*
2626
* Possible values:
2727
*
28-
* - win32
29-
* - darwin
30-
* - linux
31-
* - freebsd
32-
* - sunos
28+
* - `'win32'`
29+
* - `'darwin'`
30+
* - `'linux'`
31+
* - `'freebsd'`
32+
* - `'sunos'`
3333
*
3434
* @example
3535
* if ( PLATFORM === 'win32' ) {
3636
* console.log( 'Running on a PC...' );
37-
* }
38-
* else if ( PLATFORM === 'darwin' ) {
37+
* } else if ( PLATFORM === 'darwin' ) {
3938
* console.log( 'Running on a Mac...' );
40-
* }
41-
* else {
39+
* } else {
4240
* console.log( 'Running on something else...' );
4341
* }
4442
*/

lib/node_modules/@stdlib/os/platform/examples/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ var PLATFORM = require( './../lib' );
2222

2323
if ( PLATFORM === 'win32' ) {
2424
console.log( 'Running on a PC...' );
25-
}
26-
else if ( PLATFORM === 'darwin' ) {
25+
} else if ( PLATFORM === 'darwin' ) {
2726
console.log( 'Running on a Mac...' );
28-
}
29-
else {
27+
} else {
3028
console.log( 'Running on something else...' );
3129
}

lib/node_modules/@stdlib/os/platform/lib/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@
2828
*
2929
* if ( PLATFORM === 'win32' ) {
3030
* console.log( 'Running on a PC...' );
31-
* }
32-
* else if ( PLATFORM === 'darwin' ) {
31+
* } else if ( PLATFORM === 'darwin' ) {
3332
* console.log( 'Running on a Mac...' );
34-
* }
35-
* else {
33+
* } else {
3634
* console.log( 'Running on something else...' );
3735
* }
3836
*/
3937

4038
// MODULES //
4139

42-
var PLATFORM = require( './platform.js' );
40+
var PLATFORM = require( './main.js' );
4341

4442

4543
// EXPORTS //
File renamed without changes.

0 commit comments

Comments
 (0)