@@ -148,7 +148,7 @@ pip install flagsmith
148148<TabItem value = " nodejs" label = " Node.js" >
149149
150150``` bash
151- npm install flagsmith- nodejs
151+ npm install @ flagsmith/ nodejs
152152```
153153
154154</TabItem >
@@ -254,7 +254,7 @@ var flagsmithClient = new FlagsmithClient(
254254<TabItem value = " nodejs" label = " Node.js" >
255255
256256``` javascript
257- import { Flagsmith } from ' flagsmith- nodejs' ;
257+ import { Flagsmith } from ' @ flagsmith/ nodejs' ;
258258
259259const flagsmith = new Flagsmith ({
260260 environmentKey: ' FLAGSMITH_SERVER_SIDE_ENVIRONMENT_KEY' ,
@@ -863,11 +863,11 @@ public class MyCustomOfflineHandler: BaseOfflineHandler
863863< TabItem value= " nodejs" label= " Node.js" >
864864
865865Use < a
866- href= {`https: // www.tsdocs.dev/docs/flagsmith- nodejs/${NodejsVersion()}/classes/LocalFileHandler.html`}>LocalFileHandler</a>
866+ href= {`https: // www.tsdocs.dev/docs/@ flagsmith/ nodejs/${NodejsVersion()}/classes/LocalFileHandler.html`}>LocalFileHandler</a>
867867to read an environment file generated by the [Flagsmith CLI ](/ integrating- with- flagsmith/ CLI ):
868868
869869```typescript
870- import { Flagsmith , LocalFileHandler } from ' flagsmith- nodejs' ;
870+ import { Flagsmith , LocalFileHandler } from ' @ flagsmith/ nodejs' ;
871871
872872const flagsmith = new Flagsmith ({
873873 offlineMode: true ,
@@ -876,11 +876,11 @@ const flagsmith = new Flagsmith({
876876```
877877
878878To create your own offline handler, implement the `BaseOfflineHandler ` interface. It must return an
879- {/* prettier-ignore */ }< a target= " _blank" href= {`https: // www.tsdocs.dev/docs/flagsmith- nodejs/${NodejsVersion()}/classes/EnvironmentModel.html`}>EnvironmentModel</a>
879+ {/* prettier-ignore */ }< a target= " _blank" href= {`https: // www.tsdocs.dev/docs/@ flagsmith/ nodejs/${NodejsVersion()}/classes/EnvironmentModel.html`}>EnvironmentModel</a>
880880object:
881881
882882```typescript
883- import type { BaseOfflineHandler , EnvironmentModel } from ' flagsmith- nodejs' ;
883+ import type { BaseOfflineHandler , EnvironmentModel } from ' @ flagsmith/ nodejs' ;
884884
885885class CustomOfflineHandler implements BaseOfflineHandler {
886886 getEnvironment (): EnvironmentModel {
@@ -1350,8 +1350,8 @@ $flagsmith = Flagsmith::Client.new(
13501350< TabItem value= " nodejs" label= " Node.js" >
13511351
13521352```typescript
1353- import { Flagsmith } from ' flagsmith- nodejs' ;
1354- import type { EnvironmentModel } from ' flagsmith- nodejs' ;
1353+ import { Flagsmith } from ' @ flagsmith/ nodejs' ;
1354+ import type { EnvironmentModel } from ' @ flagsmith/ nodejs' ;
13551355
13561356const flagsmith = new Flagsmith ({
13571357 /*
@@ -1824,14 +1824,14 @@ final FlagsAndTraits flags = cache.getIfPresent(projectLevelCacheKey);
18241824< TabItem value= " nodejs" label= " Node.js" >
18251825
18261826The `cache` option in the `Flagsmith ` constructor accepts a cache implementation. This cache must implement the
1827- {/* prettier-ignore */ }< a href= {`https: // www.tsdocs.dev/docs/flagsmith- nodejs/${NodejsVersion()}/interfaces/FlagsmithCache.html`}>FlagsmithCache</a>
1827+ {/* prettier-ignore */ }< a href= {`https: // www.tsdocs.dev/docs/@ flagsmith/ nodejs/${NodejsVersion()}/interfaces/FlagsmithCache.html`}>FlagsmithCache</a>
18281828interface.
18291829
18301830For example, this cache implementation uses Redis as a backing store:
18311831
18321832```typescript
1833- import { Flagsmith , Flags } from ' flagsmith- nodejs' ;
1834- import type { BaseOfflineHandler , EnvironmentModel , FlagsmithCache } from ' flagsmith- nodejs' ;
1833+ import { Flagsmith , Flags } from ' @ flagsmith/ nodejs' ;
1834+ import type { BaseOfflineHandler , EnvironmentModel , FlagsmithCache } from ' @ flagsmith/ nodejs' ;
18351835import * as redis from ' redis' ;
18361836
18371837const redisClient = redis. createClient({
0 commit comments