JSPM

npm-run-message

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 24
    • Score
      100M100P100Q45476F
    • License MIT

    Allows you to print messages via npm run scripts.

    Package Exports

    • npm-run-message

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-run-message) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    npm-run-message

    Create a log message when running npm run scripts. Useful as verbose separators in npm command chains to give users more context as to what's happening

    Install

    $ npm install npm-run-message --save-dev

    Usage

    $ npm-run-message
    
      Usage
        $ npm-run-message <options>
    
      Options
        --message, -m "[message]"  Message to display
        --color, -c [color]  Color of message (only supports chalk colors)
        --padding, -p  Adds padding to top and bottom of message
    
      Examples
        $ npm-run-message -m "Hello World" -c yellow -p
    
        package.json
          "scripts": {
            "hello": "npm-run-message -m "Hello World" -c yellow -p && jest"
          },

    See supported colors.

    • chalk - API for this module