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

expose API in top level #160

Merged
merged 2 commits into from Mar 1, 2019
Merged

expose API in top level #160

merged 2 commits into from Mar 1, 2019

Conversation

alexandru-constantin
Copy link
Contributor

creating an access point in the top level of this module to be able to access it via code

doctoc.js Outdated

module.exports.transform=function(content, mode, maxHeaderLevel, title, notitle, entryPrefix){
return transform(content, mode, maxHeaderLevel, title, notitle, entryPrefix);
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could write this more simply as

module.exports.transform = transform

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i agree. sorry i'm new to nodejs i just needed the API

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, just go ahead and make that change and I'll merge it in. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@AndrewSouthpaw AndrewSouthpaw merged commit e4c74ae into thlorenz:master Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants