1.0.0 • Published 7 years ago

prepend-to-npm-script v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

prepend-to-npm-script Build Status JavaScript Style Guide

Helps you prepend to npm scripts.

Usage

Example

const prependToNpmScript = require('prepend-to-npm-script')
prependToNpmScript('test', 'echo this, first').then(() => console.log('done'))

Now, if your test script was echo testing, it is now echo this, first && echo testing.

API

prependToNpmScript(name, script)

  • name: the name of the script to prepend to
  • script: the script to prepend

Returns empty promise.