Today I Learned - Rocky Kev

TIL NPM Christmas

POSTED ON:

TAGS:

This cute binary from NPM lets you really kick off the holidays.
npm xmas

The unofficial one is here:
The code on NPM

npx christmas

!function $(){/*




                  .
                 /_\
                /_*_\
               /_/_/_\
              /_*/f=/*\
             /*/'!'+/*/\
            /*/$+'()'/*/\
           /_/_/*/l=~f./*\
          /*/indexOf/*/_/_\
         /_/_/*/(' '+'>')/*\
        /_/*/l?f=f/*/_/_/_/_\
       /_/_/_/_*/.replace/*/*\
      /*/('>*<',' .')/*_/_/_/_\
     /_*/:f=f./*_/_*/replace/*_\
    /*/(/ \.//*_/_/*/,'>*<');/*_\
   /_/*/console./*_/_/_/_/*/log/*\
  /_/*/(f);/*/_*/setTimeout/*/_//_\
 /*/(Function/*/*/(f)/*/_/*/,300)/*\
                [___]

           MERRY CHRISTMAS!




*/}()

Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL keywords in package.json

Today I learned what keywords are in a package.json file! It's a collection of keywords about a module. Keywords can help identify a package, related modules and software, and concepts.

TIL functional async/await

PLACEHOLDER