﻿# getSync

> Use the synchronous alias of get

[Node.js](/docs/sdk/nodejs/)

```javascript
dotenvx.getSync(key, options)
```

## Usage

getSync is the same function as get: getSync === get. It accepts the same arguments, returns the same direct values, and throws synchronously.

```javascript
const dotenvx = require('@dotenvx/dotenvx')
const value = dotenvx.getSync('HELLO')
```

## Related

- [get](/docs/sdk/nodejs/get/)
