Skip to content

Conversation

znarf
Copy link

@znarf znarf commented Apr 13, 2020

It doesn't seems to be used.

It doesn't seems to be used.
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

It's used here:

just to name a few.

@znarf
Copy link
Author

znarf commented Apr 13, 2020

@ljharb Sorry, my bad. I read the code too fast and understood that it was including the util folder in the current package.

Do you know by chance why it's written require('util/') and not require('util')?

@znarf znarf closed this Apr 13, 2020
@ljharb
Copy link
Member

ljharb commented Apr 13, 2020

Because util is a node core module, so require('util') would never hit the filesystem. The trailing slash forces it to do so.

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