Skip to content

Commit cedd0af

Browse files
committed
Move packages
1 parent 5534d02 commit cedd0af

35 files changed

Lines changed: 78 additions & 67 deletions

lib/node_modules/@stdlib/math/random/examples/index.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/node_modules/@stdlib/math/random/lib/index.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

lib/node_modules/@stdlib/math/random/README.md renamed to lib/node_modules/@stdlib/random/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Usage
88

99
```javascript
10-
var random = require( '@stdlib/math/random' );
10+
var random = require( '@stdlib/random' );
1111
```
1212

1313
#### random
@@ -31,9 +31,9 @@ var rand = random;
3131

3232
```javascript
3333
var getKeys = require( 'object-keys' ).shim();
34-
var rand = require( '@stdlib/math/random' );
34+
var ns = require( '@stdlib/random' );
3535

36-
console.log( getKeys( rand ) );
36+
console.log( getKeys( ns ) );
3737
```
3838

3939
</section>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
var getKeys = require( 'object-keys' ).shim();
4+
var ns = require( './../lib' );
5+
6+
console.log( getKeys( ns ) );
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
'use strict';
2+
3+
/*
4+
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
5+
*/
6+
7+
// MODULES //
8+
9+
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
10+
11+
12+
// MAIN //
13+
14+
/**
15+
* Top-level namespace.
16+
*
17+
* @namespace ns
18+
*/
19+
var ns = {};
20+
21+
/**
22+
* @name base
23+
* @memberof ns
24+
* @readonly
25+
* @type {Namespace}
26+
* @see {@link module:@stdlib/random/base}
27+
*/
28+
setReadOnly( ns, 'base', require( '@stdlib/random/base' ) );
29+
30+
/**
31+
* @name sample
32+
* @memberof ns
33+
* @readonly
34+
* @type {Function}
35+
* @see {@link module:@stdlib/random/sample}
36+
*/
37+
setReadOnly( ns, 'sample', require( '@stdlib/random/sample' ) );
38+
39+
/**
40+
* @name shuffle
41+
* @memberof ns
42+
* @readonly
43+
* @type {Function}
44+
* @see {@link module:@stdlib/random/shuffle}
45+
*/
46+
setReadOnly( ns, 'shuffle', require( '@stdlib/random/shuffle' ) );
47+
48+
49+
// EXPORTS //
50+
51+
module.exports = ns;

lib/node_modules/@stdlib/math/random/package.json renamed to lib/node_modules/@stdlib/random/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@stdlib/math/random",
2+
"name": "@stdlib/random",
33
"version": "0.0.0",
44
"description": "Standard library generic random functions.",
55
"license": "Apache-2.0",
@@ -47,6 +47,7 @@
4747
],
4848
"keywords": [
4949
"stdlib",
50+
"stdrandom",
5051
"stdmath",
5152
"standard",
5253
"library",

lib/node_modules/@stdlib/math/random/sample/README.md renamed to lib/node_modules/@stdlib/random/sample/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Usage
1414

1515
```javascript
16-
var sample = require( '@stdlib/math/random/sample' );
16+
var sample = require( '@stdlib/random/sample' );
1717
```
1818

1919
#### sample( x\[, options] )
@@ -209,7 +209,7 @@ out = mysample();
209209
## Examples
210210

211211
```javascript
212-
var sample = require( '@stdlib/math/random/sample' );
212+
var sample = require( '@stdlib/random/sample' );
213213

214214
var out;
215215
var x;

lib/node_modules/@stdlib/math/random/sample/docs/repl.txt renamed to lib/node_modules/@stdlib/random/sample/docs/repl.txt

File renamed without changes.

lib/node_modules/@stdlib/math/random/sample/examples/index.js renamed to lib/node_modules/@stdlib/random/sample/examples/index.js

File renamed without changes.

lib/node_modules/@stdlib/math/random/sample/lib/defaults.json renamed to lib/node_modules/@stdlib/random/sample/lib/defaults.json

File renamed without changes.

0 commit comments

Comments
 (0)