Blog Logo
  • boneskull dot com
Menu
  • boneskull dot com

Recursive Directory Removal in Node.js

by Christopher Hiller

Recursive directory removal has landed in Node.js v12.10.0!

This has been a long-standing feature request.  New Node.js developers often express incredulity  when they discover this particular “battery” isn’t included in Node.js.

Over the years, userland modules (rimraf, rmdir, del, fs-extra, etc.) have heroically provided

(continue reading)

node.js, rimraf, cli
Sep 09, 2019

Mocha v6 adds Configuration File Support & Drops Node.js v4.x

by Christopher Hiller

The next major release of Mocha, v6.0.0, will be released "in the near future."   Since it contains significant changes to command-line flags and configuration, we're being cautious and plan on publishing one or more prerelease versions.

Any prerelease versions will be installable via npm install mocha@next.

Notably,

(continue reading)

mocha, testing, node.js
Dec 11, 2018

create-yo: Use any Yeoman generator. Don't install stuff.

by Christopher Hiller

I wanted to introduce a little tool I made called create-yo.
Beginning in npm v6.1.0, npm init <something> lets you magically invoke a scaffolding tool (think create-react-app) using npx.

If you’re not familiar with npx, it’s a tool installed alongside npm which allows execution

(continue reading)

node.js, npm, yeoman
Nov 20, 2018

Upcoming Node.js Features Improve Experience for CLI App Authors

by Christopher Hiller

Node.js will ship a few features in the current release line (v10.x; see release schedule) which may be of interest to those writing command-line applications. Let's take a closer look-see.

fs.readdir() optionally outputs file types

fs.readdir() is simple; it outputs a list of filenames.  Of course,

(continue reading)

node.js
Aug 29, 2018

How to use an ESP8266 with Johnny-Five

by Christopher Hiller

I wrote this short tutorial for a PDXNode “Nodebots” hackathon. It should work on Windows, Mac, and Linux boxes. I'm reposting it here, since it may be useful.

Prerequisite Software

  • Node.js v8.x
  • Arduino IDE v1.8.5
  • CP2104 driver (found linked here; if your dev board needs a

(continue reading)

node.js, esp8266, arduino, javascript, tutorial
Jul 30, 2018

About

"boneskull" is the alias of Christopher Hiller. This is his blog. Maintainer of Mocha, a JS testing framework. Dev Advocate in Node.js @ IBM. Shenanigans & opinions his own. Also a lizard person.

Recent Posts

  • Recursive Directory Removal in Node.js
  • Mocha v6 adds Configuration File Support & Drops Node.js v4.x
  • create-yo: Use any Yeoman generator. Don't install stuff.

Tags

  • ai
  • arduino
  • ci
  • cli
  • esp32
  • esp8266
  • ghost
  • javascript
  • jetbrains
  • macos
  • meta
  • micropython
  • mocha
  • mqtt
  • node.js
  • npm
  • openwhisk
  • python
  • raspberry-pi
  • rimraf
  • rollup
  • sensor
  • serverless
  • testing
  • travis-ci
  • tutorial
  • typescript
  • vscode
  • watson
  • web
  • webstorm
  • yeoman
Page 1 of 4
Older Posts

© 2017-2018 Christopher Hiller. Some rights reserved.

boneskull.com is licensed under a Creative Commons Attribution 4.0 International License .