Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Newman importable #70

Closed
prakhar1989 opened this issue May 4, 2014 · 1 comment
Closed

Make Newman importable #70

prakhar1989 opened this issue May 4, 2014 · 1 comment

Comments

@prakhar1989
Copy link
Contributor

Right now if you have newman is installed in /node_modules you can't import as it is.

var newman = require('newman'); // doesnt work
var newman = require('src/Newman'); // works

I think it will be good if we add a index.js file in root folder exposing the Newman module so that its more intuitive to import.

Index.js

module.exports = require('./src/Newman');

This allows a simple import

var newman = require('newman');

Let me know if this makes sense and I can quickly push a fix. Will help us in writing a grunt plugin as well.

@viig99
Copy link
Contributor

viig99 commented May 4, 2014

Makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants