npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

newman-reporter-remote

v1.0.0

Published

Newman Remote Reporter

Readme

newman-reporter-remote

A Remote reporter for Newman that posts aggregated information for each execution in a collection run to the remote location or save to disk in JSON format. This needs to be used in conjunction with Newman so that it can recognize Remote reporting options.

Install

The installation should be global if Newman is installed globally, local otherwise. (Replace -g from the command below with -S for a local installation)

$ npm install -g newman-reporter-remote

Usage

In order to enable this reporter, specify remote in Newman's -r or --reporters option.

# saving execution summary to disk
$ newman run collection.json -r remote --reporter-remote-export './summary.json'

# posting execution summary to remote endpoint
$ newman run collection.json -r remote --reporter-remote-api '{"url": "http://localhost:3000", "method": "POST"}'

Options

With Newman CLI

| CLI Option | Description | |-------------|-------------------| | --reporter-remote-run-id <runId> | Set custom run id. (default: UUID4) | | --reporter-remote-source <source> | Set remote execution source. (default: newman-reporter-remote@<version>) | | --reporter-remote-export <path> | Specify a path where the output JSON file will be written to disk. If not specified, the file will be written to newman/ in the current working directory. | | --reporter-remote-api <json> | Specify the request.js options which will be used to post execution summary to the specified endpoint. |

With Newman as a Library

The CLI functionality is available for programmatic use as well.

const newman = require('newman');

newman.run({
    collection: require('./examples/sample-collection.json'), // can also provide a URL or path to a local JSON file.
    reporters: 'remote',
    reporter: {
        remote: {
            // set custom run id
            runId: '12345',

            // set remote execution source
            source: '[email protected]',

            // export execution summary to disk
            // if path is not specified, the file will be written to `newman/` in the current working directory.
            export: './summary.json',

            // post execution summary to remote endpoint
            // request.js(https://github.com/request/request) options object
            api: {
                url: 'http://localhost:3000',
                method: 'POST'
            },

            // custom handling of execution summary
            callback: function (err, summary) {
                // custom logic goes here
            }
        }
    }
}, function (err) {
	if (err) { throw err; }
    console.log('collection run complete!');
});

Compatibility

| newman-reporter-remote | newman | node | |:--------------------------:|:----------:|:--------:| | v0.1.0 | >= v4.1.0 | >= v6.x |

Community Support

Sign in using your Postman account to participate in the discussions and don't forget to take advantage of the search bar - the answer to your question might already be waiting for you! Don’t want to log in? Then lurk on the sidelines and absorb all the knowledge.

License

This software is licensed under Apache-2.0. Copyright Postdot Technologies, Inc. See the LICENSE.md file for more information.