Skip to content

Commit b9d4717

Browse files
committed
Add num2words to REPL and string namespaces
1 parent f2d4bb6 commit b9d4717

File tree

2 files changed

+17
-0
lines changed
  • lib/node_modules/@stdlib

2 files changed

+17
-0
lines changed

lib/node_modules/@stdlib/namespace/lib/namespace/n.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ ns.push({
450450
'related': []
451451
});
452452

453+
ns.push({
454+
'alias': 'num2words',
455+
'path': '@stdlib/string/num2words',
456+
'value': require( '@stdlib/string/num2words' ),
457+
'type': 'Function',
458+
'related': []
459+
});
460+
453461
ns.push({
454462
'alias': 'Number',
455463
'path': '@stdlib/number/ctor',

lib/node_modules/@stdlib/string/lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ setReadOnly( string, 'nextGraphemeClusterBreak', require( '@stdlib/string/next-g
184184
*/
185185
setReadOnly( string, 'numGraphemeClusters', require( '@stdlib/string/num-grapheme-clusters' ) );
186186

187+
/**
188+
* @name num2words
189+
* @memberof string
190+
* @readonly
191+
* @type {Function}
192+
* @see {@link module:@stdlib/string/num2words}
193+
*/
194+
setReadOnly( string, 'num2words', require( '@stdlib/string/num2words' ) );
195+
187196
/**
188197
* @name pad
189198
* @memberof string

0 commit comments

Comments
 (0)