Skip to content

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.

2 participants