concept NPM script in category javascript

appears as: NPM script, n NPM script, NPM scripts
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

This is an excerpt from Manning's book Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond.

2.3.2. Set up Babel as NPM script

You may not want to repeatedly tell Babel what folder to transpile from and to (like you did in listing 2.1). You can make your life easier by setting up an NPM script to do that for you. If you’re unfamiliar with how NPM scripts work, it’s really simple. In your NPM configuration file named package.json, there’s a special scripts section that allows you to specify shell commands that can be executed by their name. See https://docs.npmjs.com/misc/scripts for further information about NPM scripts.