You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, the exciting world of ES6 seems to means that node specific functions (eg, that call node:fs/promises or similar) seem to not prevent a module being used in the browser.
The text was updated successfully, but these errors were encountered:
Motivation
Dev Education and DevRel also see a lot of copy-paste efforts to add secret keys to env files, and to load keys from the environment.
It would be good to provide some guidance here:
node
along withesrun
,ts-node
,tsx
etc to run js/ts files on the command line when learning..env
.gitignore
their env files.Example use case
The DevRel
helpers
package has these. You can steal the code.To load the default keypair ~/.config/solana/id.json, just run:
or to load a specific file:
or using home dir expansion:
For the environment:
Saves a keypair to the environment file.
or to specify a file name:
Details
Code
Interesting, the exciting world of ES6 seems to means that node specific functions (eg, that call
node:fs/promises
or similar) seem to not prevent a module being used in the browser.The text was updated successfully, but these errors were encountered: