Skip to content

trasherdk/node-test-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-test-snippets

Minimal code snippets to test stuff

typescript examples

To launch ts code from command line, this seems to be the way:

node --experimental-specifier-resolution=node --loader ts-node/esm path/to/example/

or even

node --loader ts-node/esm path/to/example/

tsconfig.json need the module and target set to something recent.

{
  "compilerOptions": {
    "esModuleInterop": true,
    "module": "ESNext",
    "target": "ES2020"
  },
  "include": [
    "./**/*.ts"
  ]
}

About

Minimal code snippets to test stuff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published