Tag: javascript

  1. How to pretty print JSON in bash console

    Recently i was playing with Swagger Codegen tool and i needed to look at available configuration fields for java language. You can do it easily by running : curl -X GET --header 'Accept: application/json' 'https://generator.swagger.io/api/gen/clients/java' But, as an output, you'll get this : {"…

    on swagger-codegen javascript bash json prettyprint

  2. Handy script to get time difference in Javascript

    When I was writing my fabricator.js library, I had to write some unit tests where I was thinking about measuring the time between two-time points. It's a quite easy task, but when it comes to calculating every time in your mind and convert from milliseconds to seconds and then…

    on javascript time difference time milliseconds minutes hours convert

  3. Javascript linting in "hot reload" mode

    When I started to work with Javascript, I found such thing as Javascript lint. it's quite useful since it allows for teams to use same code standards and agreements. That's why I decided to add linting to my project as well. For that I had to : Install Eslint npm install…

    on javascript eslint watch eslint-watch hot-reload

  4. Pretty printing of JSON in javascript

    I like JSON very much. It's easy to read, easy to work with, but when you get a big structure, it's handy to have some quick way for print it out in a nice readable format. Before i was using Sublime Text editor with PrettyJson plugin. But now i started…

    on json javascript prettyprint

  5. Nice sample table of new features in ECMAScript 6

    Just yesterday found by accident this nice page where described in a small and clear examples new features from ES6. Pretty handy to have this table close to peak from time to time, if you forget something. Since we have Babel, it should be super fun and easy to write…

    on javascript es6 new_features cheatsheet

  6. How to crazy easily speed up your npm install speed

    Thanks to Gavin Joyce i recently found out how easily you could speed up your npm install - just do npm set progress=false and you're done! That's so sweet :) Thanks Gavin.…

    on javascript npm speed performance improvement