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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vscode extensions list] these worth. #extensions #vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Encryption will use the algorithm preferred by the public (encryption) key (defaults to aes256 for keys generated in OpenPGP.js), and decryption will use the algorithm used for encryption.
constopenpgp=require('openpgp');// use as CommonJS, AMD, ES6 module or via window.openpgp
(async()=>{// put keys in backtick (``) to avoid errors caused by spaces or tabsconstpublicKeyArmored= `-----BEGINPGPPUBLICKEYBLOCK-----
[es6-cjs] #murder #hornets because every project seems to suffer in the ecosystem of #nodejs. It is probably #ryan #dahls fault somehow.
"Murder Hornets attacked my code.
"this code never had errors before, but now through the magic of async functions, it has all sorts of problems. Why do node CommonJS authors hate ESM authors so much?"
--- some guy on the internet
a.k.a. What it feels like to work in Typescript sometimes
Look folks, the Node and ECMAScript (ESM) developers don't hate each other (too much)! Nor do the users or developers of these two subtly different loading systems for Node packages, because we ALL use them, and we also use many of the NPM features that go hand-in-hand like workspaces, modules, linking etc. We don't hate anyone because we aren't 12 years old, yet, either!
The problem is there are subtle differences between ECMA Script 6 or ES6, and CommonJS. These subtle differences make me curse Ryan Dahl, but that's okay. I mean who doesn't? Imports are newer and much more complex, but they are [built in to the Javascript Language, after all](https://developer.mozilla.org/en-US/docs/web/javascript/refe
[#dotenv usage] with #import instead of require (as a #Node Module rather than a require of CommonJS package)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters