mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
34 lines
610 B
Markdown
34 lines
610 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [sprintf](./bitburner.ns.sprintf.md)
|
|
|
|
## NS.sprintf() method
|
|
|
|
Format a string.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
sprintf(format: string, ...args: string[]): string;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| format | string | String to format. |
|
|
| args | string\[\] | Formating arguments. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
string
|
|
|
|
Formated text.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|
|
see: https://github.com/alexei/sprintf.js
|
|
|