Skip to content

Instantly share code, notes, and snippets.

@davidkhala
Last active March 15, 2021 08:57
Show Gist options
  • Select an option

  • Save davidkhala/2fe89f19304db9e3dba6108321b33b27 to your computer and use it in GitHub Desktop.

Select an option

Save davidkhala/2fe89f19304db9e3dba6108321b33b27 to your computer and use it in GitHub Desktop.

Revisions

  1. davidkhala revised this gist Mar 15, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions npm-syntax-notes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    build CLI binary from npm package
    - https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs
  2. davidkhala created this gist Feb 1, 2021.
    3 changes: 3 additions & 0 deletions js-syntax-notes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    - Ternary Operator in some case could be simplified as
    `a = a ? a : b` => `a = a || b`
    - console.log() accepts 3 format symbols, `%s` => `string`, `%d` => `integer`, and `%j` => `JSON data`