strange syntax error in node-apn library
<p>I am trying to implement push notification server with nodejs. 
I downloaded node-apn library and tried to initiate sample code.
When I run sample code file, I got an error "unexpected syntax token ,".
So I looked code line where syntax error occurs.</p>

<pre><code>const Endpoint = require("./lib/protocol/endpoint")({
    tls,
    protocol,
});
</code></pre>

<p>This seems strange syntax but everybody else use node-apn library fine
except me. I get syntax error if includes only one line of code below.</p>

<p>require("apn");</p>

<p>is there anyone who experienced this?
or is there anybody who successfully implemented this node-apn library?
any assistance will be appreciated.
thanks in advance.</p>