added
2025-06-23 - Node SDK with Load Environments and Net Info
4 days ago by Jared Wray
The @hyphen/sdk has been extended with a function to load your environment variables easily with loadEnv()
. Here is an example of how to use it:
import { loadEnv } from '@hyphen/sdk';
//load your default environment variables and envrionment variables
loadEnv();
You can also set the environment, env path, and to load *.local
files. This will load your environment variables in the following order to do overrides:
.env -> .env.local -> .env.<environment> -> .env.<environment>.local
In addition, We have added NetInfo
which will be used for geo ip address information. Here is how to use it:
import { NetInfo } from '@hyphen/sdk';
const netInfo = new NetInfo({
apiKey: 'your_api_key',
});
const ipInfo = await netInfo.getIpInfo('8.8.8.8');
console.log('IP Info:', ipInfo);