1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

feat: make node example more consistent (#8111)

This commit is contained in:
Jaanus Sellin 2024-09-06 13:22:23 +03:00 committed by GitHub
parent b6e22d6178
commit 028cf06f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,12 +29,13 @@ dotnet add package Newtonsoft.Json`,
};
export const initializeCodeSnippets: Record<SdkName, string> = {
Node: `import { initialize } from 'unleash-client';
Node: `const { initialize } = require('unleash-client');
const unleash = initialize({
url: '<YOUR_API_URL>',
appName: 'unleash-onboarding-node',
customHeaders: { Authorization: '<YOUR_API_TOKEN>' },
metricsInterval: 5000,
});
`,
Golang: `import (