Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

fix module exports #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StefanoVollono
Copy link

Hi Paul,
first of all thanks for your library,
in my project we are using exclusively NPM as package manager and i need your library as well,
i was thinking of creating my own fork and publish it on npm but actually making a pull request
is a better idea :)

i've only added this if statement at the bottom of the file to export the module in case of a
node envirnoment

if(typeof module !== 'undefined' && module.exports){
  module.exports = mod;
} 

if you can merge the commit and publish the package on npm it would be great!
thanks again

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

Successfully merging this pull request may close these issues.

1 participant