# Provide custom path and name for reports generated by newman nodejs library

**URL:** <https://community.postman.com/t/provide-custom-path-and-name-for-reports-generated-by-newman-nodejs-library/11726>\
**Category:** Help Hub\
**Tags:** newman-project, reporter\
**Created:** [April 5, 2020, 4:51pm UTC](https://community.postman.com/t/provide-custom-path-and-name-for-reports-generated-by-newman-nodejs-library/11726 "2020-04-05T16:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chacko.sono](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@chacko.sono](https://community.postman.com/u/chacko.sono)\
**Post date:** [April 5, 2020, 4:51pm UTC](https://community.postman.com/t/provide-custom-path-and-name-for-reports-generated-by-newman-nodejs-library/11726/1 "2020-04-05T16:51:00Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

I am using nwaman npm library to run the collection.

I am able to get the reports generated in newman folder in my working directory. I wan to provide a custom path and name for the report in my Typescript code.

---

<div class="post-metadata">

**Author:** ![chacko.sono](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@chacko.sono](https://community.postman.com/u/chacko.sono)\
**Post date:** [April 5, 2020, 5:25pm UTC](https://community.postman.com/t/provide-custom-path-and-name-for-reports-generated-by-newman-nodejs-library/11726/2 "2020-04-05T17:25:55Z")

</div>

Got the solution.

```
reporter = {
        'json': {
            'export': `path/file.json`
        },
        'junit': {
            'export': `path/file.xml`
        }
    }
```
