[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [writeValue](./js-utils.writevalue.md)
## writeValue() function
> Warning: This API is now obsolete.
>
> call `writeInput` directly instead
>
Signature:
```typescript
export declare function writeValue(stream: Writable, value: string): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| stream | Writable | |
| value | string | |
Returns:
Promise<boolean>