bitburner-src/markdown/bitburner.ns.sprintf.md

34 lines
610 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [sprintf](./bitburner.ns.sprintf.md)
## NS.sprintf() method
Format a string.
2021-10-30 18:34:14 +02:00
<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
2021-10-30 21:46:34 +02:00
RAM cost: 0 GB
2021-10-30 18:34:14 +02:00
see: https://github.com/alexei/sprintf.js