Giter VIP home page Giter VIP logo

hacker-job-trends's Introduction

npm install -g hacker-job-trends

hacker-job-trends

As we know, an "Ask HN: Who is Hiring?"(example) post will occur at hackernews every month. It is interesting to scan the post because it helps you to get a feeling about what is happening in tec related business. This repo aims to help you keep up with how the tec job requirements/used tools/kind/... evolve.

How

  1. Get historical "Who is hiring" posts on HackerNews
  2. Analyse the keyword count history

Examples

vue trends:

$ hjt vue + vuejs

   6.55 ┼                                                                                               ╭╮
   6.11 ┤                                                                                      ╭╮    ╭╮ │╰╮
   5.68 ┤                                                                                      ││  ╭╮││ │ │
   5.24 ┤                                                                                      ││ ╭╯│││╭╯ ╰╮  ╭╮
   4.80 ┤                                                                                     ╭╯│╭╯ ││││   ╰──╯╰╮
   4.37 ┤                                                                                     │ ││  ││││        ╰
   3.93 ┤                                                                            ╭╮     ╭─╯ ╰╯  ╰╯││
   3.49 ┤                                                                            ││    ╭╯         ╰╯
   3.06 ┤                                                                            ││    │
   2.62 ┤                                                                            ││ ╭─╮│
   2.18 ┤                                                                      ╭╮ ╭╮ ││╭╯ ╰╯
   1.75 ┤                                             ╭╮                       │╰╮│╰─╯╰╯
   1.31 ┤    ╭╮                                       ││                       │ ││
   0.87 ┼╮   ││   ╭╮           ╭╮                     ││       ╭╮    ╭╮       ╭╯ ││
   0.44 ┤│   │╰╮  │╰╮      ╭╮  ││    ╭╮    ╭─╮ ╭╮ ╭──╮││   ╭╮  ││ ╭─╮│╰─╮╭────╯  ╰╯
   0.00 ┤╰───╯ ╰──╯ ╰──────╯╰──╯╰────╯╰────╯ ╰─╯╰─╯  ╰╯╰───╯╰──╯╰─╯ ╰╯  ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

react trends:

$ hjt react

  54.71 ┼                                                                                                       ╭
  51.07 ┤                                                                                                       │
  47.42 ┤                                                                                                ╭─╮   ╭╯
  43.77 ┤                                                                                        ╭╮╭─╮   │ ╰╮ ╭╯
  40.12 ┤                                                                                ╭╮    ╭╮│╰╯ │╭╮╭╯  ╰─╯
  36.48 ┤                                                                              ╭╮│╰────╯╰╯   ╰╯╰╯
  32.83 ┤                                                                          ╭╮╭╮│╰╯
  29.18 ┤                                                                     ╭╮ ╭─╯╰╯╰╯
  25.53 ┤                                                               ╭╮╭───╯╰─╯
  21.89 ┤                                                             ╭─╯╰╯
  18.24 ┤                                                        ╭╮╭──╯
  14.59 ┤                                                    ╭╮ ╭╯╰╯
  10.94 ┤                                                  ╭─╯╰─╯
   7.30 ┤                                              ╭╮╭─╯
   3.65 ┤                                      ╭─╮╭────╯╰╯
   0.00 ┼──────────────────────────────────────╯ ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

angular trends:

$ hjt angular + angularjs

  69.86 ┼                                  ╭╮
  65.20 ┤                                  ││
  60.54 ┤                                  ││
  55.89 ┤                                  ││
  51.23 ┤                                  ││     ╭╮
  46.57 ┤                                  ││     ││
  41.91 ┤                                  ││     │╰╮
  37.26 ┤                                  │╰╮    │ │   ╭╮
  32.60 ┤                                  │ ╰╮   │ │  ╭╯│
  27.94 ┤                                 ╭╯  ╰──╮│ ╰──╯ ╰╮
  23.29 ┤                                 │      ╰╯       │  ╭─╮
  18.63 ┤                               ╭─╯               ╰──╯ │ ╭╮╭─╮  ╭╮ ╭──╮
  13.97 ┤                              ╭╯                      ╰─╯╰╯ ╰──╯╰─╯  ╰─╮╭╮ ╭╮  ╭─╮ ╭╮╭╮
   9.31 ┤                            ╭─╯                                        ╰╯╰─╯╰──╯ ╰─╯╰╯╰───────╮╭──╮╭────
   4.66 ┤                          ╭─╯                                                                 ╰╯  ╰╯
   0.00 ┼──────────────────────────╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

javascript trends:

$ hjt javascript +  js

  61.17 ┤                                           ╭╮
  57.92 ┤                                           ││
  54.68 ┤                                           ││
  51.43 ┤                                           ││
  48.19 ┤                           ╭╮      ╭╮      ││ ╭╮
  44.95 ┤                           ││╭─╮   ││    ╭╮│╰╮││
  41.70 ┤                           │││ │   │╰╮   │╰╯ │││
  38.46 ┤                  ╭╮       │╰╯ │ ╭╮│ ╰──╮│   ╰╯╰╮
  35.21 ┤              ╭╮ ╭╯│ ╭╮╭╮  │   │╭╯││    ╰╯      ╰╮
  31.97 ┤       ╭╮     ││ │ │╭╯╰╯╰──╯   ╰╯ ╰╯             │ ╭╮╭╮      ╭──╮
  28.72 ┤     ╭╮││   ╭─╯│╭╯ ╰╯                            │╭╯╰╯╰╮╭────╯  │  ╭╮╭╮
  25.48 ┤     │╰╯│  ╭╯  ╰╯                                ╰╯    ╰╯       ╰──╯╰╯│╭────╮ ╭──────╮╭╮╭╮
  22.23 ┤  ╭──╯  ╰──╯                                                          ╰╯    ╰─╯      ╰╯╰╯│  ╭╮ ╭╮╭╮   ╭╮
  18.99 ┤╭╮│                                                                                      ╰──╯╰─╯╰╯╰───╯╰
  15.74 ┤│╰╯
  12.50 ┼╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

nodejs trends:

$ hjt nodejs + node.js

  18.02 ┼                                         ╭╮
  16.82 ┤                                         ││
  15.62 ┤                                         ││
  14.42 ┤                                         ││    ╭╮
  13.22 ┤                              ╭╮         ││╭╮ ╭╯│   ╭╮                             ╭╮
  12.01 ┤                              ││      ╭╮ │╰╯╰╮│ ╰╮  ││  ╭╮                    ╭╮╭╮ │╰╮
  10.81 ┤                              ││      │╰╮│   ││  │  │╰╮╭╯│       ╭╮  ╭╮  ╭╮  ╭╯│││ │ │ ╭╮              ╭
   9.61 ┤                        ╭╮    ││    ╭─╯ ││   ╰╯  ╰─╮│ ╰╯ │╭╮  ╭╮╭╯│╭─╯╰╮╭╯│╭╮│ ││╰─╯ ╰╮││  ╭─╮ ╭─╮    ╭╯
   8.41 ┤      ╭╮   ╭──╮   ╭╮  ╭╮││  ╭─╯│ ╭╮ │   ╰╯         ╰╯    ╰╯│╭─╯╰╯ ╰╯   ╰╯ ╰╯╰╯ ╰╯     ╰╯╰──╯ ╰─╯ ╰╮   │
   7.21 ┤      ││ ╭─╯  ╰─╮ ││ ╭╯│││╭─╯  ╰─╯│ │                      ││                                     ╰───╯
   6.01 ┤      │╰─╯      ╰─╯╰─╯ ╰╯╰╯       ╰╮│                      ╰╯
   4.81 ┤    ╭─╯                            ││
   3.60 ┤ ╭──╯                              ╰╯
   2.40 ┤╭╯
   1.20 ┤│
   0.00 ┼╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

remote trends:

$ hjt remote - not remote - no remote

  58.01 ┤                                                                                                      ╭─
  54.83 ┤                                                                                                     ╭╯
  51.64 ┤                                                                                                 ╭╮ ╭╯
  48.45 ┤                                                                                         ╭╮      │╰╮│
  45.26 ┤                                                                                        ╭╯│     ╭╯ ╰╯
  42.07 ┤                                                                                      ╭╮│ │ ╭─╮╭╯
  38.89 ┤                                                                               ╭╮  ╭╮╭╯││ ╰─╯ ╰╯
  35.70 ┤                                                           ╭╮  ╭╮      ╭╮ ╭╮ ╭─╯╰──╯╰╯ ╰╯
  32.51 ┤ ╭╮                                      ╭╮╭╮              ││╭╮││   ╭╮╭╯│ ││ │
  29.32 ┤ ││                                ╭╮ ╭─╮│╰╯│              │╰╯││╰╮╭─╯││ │╭╯│╭╯
  26.13 ┤╭╯│                     ╭╮         │╰╮│ ││  │ ╭─╮╭╮ ╭╮╭────╯  ╰╯ ╰╯  ╰╯ ╰╯ ╰╯
  22.95 ┤│ │╭╮       ╭─╮       ╭╮││    ╭─╮╭╮│ ╰╯ ╰╯  ╰─╯ ╰╯╰╮│╰╯
  19.76 ┤│ │││  ╭╮  ╭╯ ╰╮  ╭╮╭─╯││╰─╮ ╭╯ ││╰╯               ╰╯
  16.57 ┼╯ │││  │╰╮ │   ╰─╮│╰╯  ╰╯  ╰─╯  ╰╯
  13.38 ┤  ││╰──╯ │╭╯     ││
  10.19 ┤  ╰╯     ╰╯      ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

aws trends:

$ hjt aws

  30.09 ┼                                                                                                  ╭╮
  28.08 ┤                                                                                                 ╭╯│ ╭╮
  26.08 ┤                                                                                                 │ │ ││╭
  24.07 ┤                                                                                         ╭╮    ╭─╯ ╰─╯╰╯
  22.06 ┤                                                                                ╭╮  ╭──╮╭╯╰─╮ ╭╯
  20.06 ┤                                                                   ╭╮ ╭─╮╭╮   ╭─╯╰╮╭╯  ╰╯   ╰─╯
  18.05 ┤                                              ╭╮                 ╭╮││ │ ││╰─╮ │   ╰╯
  16.05 ┤                            ╭╮                ││    ╭╮  ╭╮  ╭╮ ╭╮│╰╯╰─╯ ╰╯  ╰─╯
  14.04 ┤                            ││           ╭╮╭──╯╰─╮╭─╯╰──╯╰╮╭╯╰─╯╰╯
  12.04 ┼╮       ╭╮ ╭╮               ││        ╭╮ │╰╯     ╰╯       ╰╯
  10.03 ┤│   ╭╮  ││ ││ ╭╮           ╭╯│╭╮      │╰─╯
   8.02 ┤│   │╰╮ ││ ││ ││ ╭╮ ╭╮ ╭╮ ╭╯ ╰╯╰─╮╭──╮│
   6.02 ┤│  ╭╯ │ │╰╮│╰─╯╰╮│╰╮│╰─╯╰─╯      ╰╯  ╰╯
   4.01 ┤│  │  ╰─╯ ╰╯    ╰╯ ╰╯
   2.01 ┤╰╮╭╯
   0.00 ┤ ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

blockchain trends:

$ hjt ethereum + blockchain + bitcoin + solidity + smart contract

  15.33 ┼                                                                                        ╭╮
  14.30 ┤                                                                                        ││
  13.28 ┤                                                                                 ╭─╮   ╭╯╰╮
  12.26 ┤                                                                                 │ │   │  │
  11.24 ┤                                                                               ╭╮│ ╰╮╭╮│  │ ╭╮
  10.22 ┤                                                                               │││  ╰╯╰╯  ╰─╯│
   9.20 ┤                                                                               │╰╯           ╰╮  ╭╮    ╭
   8.17 ┤                                                                               │              │  ││ ╭─╮│
   7.15 ┤                                                                               │              │╭─╯╰╮│ ╰╯
   6.13 ┤                                                                               │              ││   ╰╯
   5.11 ┤                                                                         ╭╮    │              ╰╯
   4.09 ┤                                          ╭╮                        ╭─╮ ╭╯│ ╭─╮│
   3.07 ┤                                      ╭╮  │╰─╮                      │ │╭╯ ╰─╯ ││
   2.04 ┤                               ╭╮     │╰╮╭╯  │    ╭─╮╭╮   ╭╮     ╭╮ │ ╰╯      ││
   1.02 ┤                   ╭╮        ╭─╯╰╮  ╭─╯ ╰╯   ╰──╮╭╯ ╰╯╰───╯╰╮╭╮╭─╯╰─╯         ╰╯
   0.00 ┼───────────────────╯╰────────╯   ╰──╯           ╰╯          ╰╯╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

java trends:

$ hjt java - javascript

  33.33 ┤ ╭╮
  31.79 ┤ ││
  30.24 ┤ ││         ╭╮
  28.69 ┤ ││         ││
  27.14 ┤ ││         ││
  25.60 ┤ ││         ││
  24.05 ┤ ││         ││      ╭╮
  22.50 ┤ ││         ││      ││  ╭╮    ╭╮ ╭╮   ╭╮    ╭╮
  20.96 ┤ ││         ││╭╮    ││  ││╭╮╭╮││ ││   ││    ││
  19.41 ┤ ││       ╭╮││││    ││  ││││││││ ││   ││ ╭──╯│
  17.86 ┤ ││    ╭╮ ││││││ ╭╮ ││ ╭╯││╰╯│││ ││ ╭╮││ │   │╭╮╭╮  ╭╮                  ╭╮
  16.32 ┤ ││╭╮  ││╭╯│││││ ││ ││╭╯ ╰╯  ││╰╮│╰╮││││╭╯   ││││╰╮ ││   ╭╮             ││   ╭╮ ╭─╮
  14.77 ┤ ││││  │││ ╰╯││╰╮│╰─╯││      ││ ││ ││││╰╯    ╰╯╰╯ │╭╯│╭╮ ││  ╭╮╭╮ ╭╮  ╭─╯│╭╮╭╯╰─╯ │╭─────╮    ╭───╮  ╭╮
  13.22 ┼╮│╰╯│╭─╯╰╯   ╰╯ ││   ╰╯      ╰╯ ╰╯ ││╰╯           ╰╯ ││╰─╯╰╮ │╰╯╰╮│╰──╯  ╰╯╰╯     ╰╯     ╰╮╭──╯   ╰╮╭╯│╭
  11.67 ┤╰╯  ││          ╰╯                 ││                ╰╯    │╭╯   ╰╯                       ╰╯       ╰╯ ╰╯
  10.13 ┤    ╰╯                             ╰╯                      ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

python trends:

$ hjt python

  46.39 ┤                                           ╭╮
  43.74 ┤                                           ││
  41.10 ┤                                         ╭╮││ ╭╮
  38.45 ┤                                         ││││ ││
  35.80 ┤                              ╭╮    ╭╮   │╰╯╰─╯╰─╮                                               ╭╮
  33.15 ┤                  ╭╮ ╭╮╭╮     ││    │╰╮  │       │                            ╭──╮    ╭╮╭───╮   ╭╯│
  30.50 ┤       ╭╮       ╭╮││╭╯╰╯│   ╭╮││╭──╮│ ╰─╮│       │     ╭╮             ╭╮   ╭─╮│  ╰────╯││   ╰╮╭─╯ ╰─────
  27.85 ┤       ││    ╭╮╭╯││││   ╰╮╭╮│╰╯││  ╰╯   ╰╯       ╰╮╭─╮╭╯╰╮ ╭╮    ╭──╮╭╯╰───╯ ││        ╰╯    ╰╯
  25.21 ┤       ││ ╭╮╭╯││ ╰╯╰╯    ││╰╯  ││                 ╰╯ ╰╯  │╭╯╰╮╭──╯  ╰╯       ╰╯
  22.56 ┼╮ ╭╮   ││ │││ ││         ││    ╰╯                        ╰╯  ╰╯
  19.91 ┤│ │╰╮╭╮││ │││ ╰╯         ╰╯
  17.26 ┤│ │ ││││╰╮│││
  14.61 ┤╰╮│ ╰╯╰╯ ╰╯╰╯
  11.96 ┤ ││
   9.32 ┤ ││
   6.67 ┤ ╰╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

golang trends:

$ hjt golang

   6.10 ┼                                                                                                 ╭╮
   5.69 ┤                                                                                      ╭╮   ╭╮  ╭╮│╰╮  ╭╮
   5.28 ┤                                                                                      ││╭╮ ││  │││ ╰╮╭╯╰
   4.88 ┤                                                                ╭╮                    ││││ │╰──╯││  ╰╯
   4.47 ┤                                                                ││ ╭╮             ╭╮ ╭╯│││╭╯    ╰╯
   4.07 ┤                                                          ╭╮    ││╭╯│╭─╮    ╭╮  ╭╮││ │ ││││
   3.66 ┤                                                          ││   ╭╯││ ╰╯ │ ╭╮ │╰╮ ││││ │ ╰╯╰╯
   3.25 ┤                                                          ││   │ ╰╯    │ ││╭╯ ╰╮│││╰╮│
   2.85 ┤                                                        ╭╮│╰╮ ╭╯       ╰─╯╰╯   ││╰╯ ╰╯
   2.44 ┤                                     ╭─╮                │╰╯ │╭╯                ╰╯
   2.03 ┤                                     │ │                │   ││
   1.63 ┤                                     │ ╰╮╭╮    ╭╮ ╭╮ ╭╮╭╯   ╰╯
   1.22 ┤                                ╭╮   │  ╰╯│╭╮╭╮││ │╰─╯││
   0.81 ┤                                │╰╮  │    ╰╯╰╯╰╯│╭╯   ╰╯
   0.41 ┤               ╭╮             ╭╮│ │ ╭╯          ╰╯
   0.00 ┼───────────────╯╰─────────────╯╰╯ ╰─╯
        :
        ┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──────────┼┼──
       2011-01     2012-01     2013-01     2014-01     2015-01     2016-01     2017-01     2018-01     2019-01     2020-01

npm package

# install package (node version > 10.0.0)
npm install -g hacker-job-trends

# see match count history on hackernews who is hiring post
hjt 'python'

# match multiple keyword and a count them together
hjt ' js ' + 'javascript'

# match multiple keywords but you want to do a subtraction operation
hjt 'remote' - 'no remote' - 'not remote'

# If you want the trends with count of keywords related to number of posts, add the option `--relative`
hjt react --relative

Contributing

1. Add new useful trend graph

By installing the npm module and generating new interesting chart and open a PR for the README.md

2. Add new who is hiring link

  1. Fork the repo and npm install
  2. Add new "who is hiring" post url on HN-who-is-hiring-monthly.md
  3. npm run updateContents and make a PR

Best search pattern for searching monthly "who is hiring" on hackernews

# Google:
Ask HN: Who is Hiring? "November 2011" site:https://news.ycombinator.com/

Donate with bitcoin

hacker-job-trends's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hacker-job-trends's Issues

[Bug] RangeError: Invalid array length

hjt ' cpp '                                                                                                                                                             !10781
/usr/local/lib/node_modules/hacker-job-trends/node_modules/asciichart/asciichart.js:29
        let result = new Array (rows + 1) // empty space
                     ^

RangeError: Invalid array length
    at Object.exports.plot (/usr/local/lib/node_modules/hacker-job-trends/node_modules/asciichart/asciichart.js:29:22)
    at Object.<anonymous> (/usr/local/lib/node_modules/hacker-job-trends/src/index.js:73:24)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)

hjt doesn't work on my mac using Homebrew

Did an 'npm install -g hacker-job-trends' and got the following error:

$ hjt 'java'
fs.js:119
    throw err;
    ^

Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/hacker-job-trends/assets/rowContents'
    at Object.readdirSync (fs.js:759:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/hacker-job-trends/src/index.js:42:23)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:236:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:560:3)
$ which npm
/usr/local/bin/npm

$ npm -v
6.1.0

$ node -v
v10.6.0

Scripts to generate charts (ascii and html)

When analysing a new post with jobs one has to update all the charts in the README.md manually. When adding more queries this becomes more work.

Also when people want to compare the stats for certain queries, it is almost impossible to do this in an easy way.

To address these challenges I created scripts and templates to automate this, #16

Searching for 'C++' throws a SyntaxError

Doing hjt 'C++' gives you this error:

/opt/local/lib/node_modules/hacker-job-trends/src/index.js:47
    const reg = new RegExp(matcher.keyword, 'gi');
                ^

SyntaxError: Invalid regular expression: /C++/: Nothing to repeat
    at new RegExp (<anonymous>)
    at matcherArr.map.matcher (/opt/local/lib/node_modules/hacker-job-trends/src/index.js:47:17)
    at Array.map (<anonymous>)
    at Object.<anonymous> (/opt/local/lib/node_modules/hacker-job-trends/src/index.js:46:41)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)

The '+' in the search is probably treated as a special character in the regular expressions matcher. It probably needs to be escaped before being passed on to the regular expressions. Manually escaping them (hjt 'C\+\+') seems to work fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.