At the github page of HyperSnips says: https://github.com/draivin/hsnips/blob/239862ea79e94fb2ac9e83d8c87e3518bd835a55/README.md
The require function can also be used to import NodeJS modules.
I can't find any example about this functionality. On their documentation or on Google.
In my case, when I try to use const myModule = require('./my-module'); and use Reload Snippets command, it pops up an error message:
Command 'HyperSnips: Reload Snippets' resulted in an error (Cannot find module './my-module'
Require Stack:
- c\Users\%username%\.vscode\extensions\draivin.hsnips-0.2.7\out\parser.js
- c\Users\%username%\.vscode\extensions\draivin.hsnips-0.2.7\out\extension.js
- c\Users\%username%\.vscode\extensions\draivin.hsnips-0.2.7\out\vs\loader.js
- c\Users\%username%\.vscode\extensions\draivin.hsnips-0.2.7\out\bootsrap-amd.js
- c\Users\%username%\.vscode\extensions\draivin.hsnips-0.2.7\out\bootstrap-fork.js)
It would be amazing to empower HyperSnips with NodeJS modules. Has anybody successfully use this feature?