I believe the BSON npm package achieves this. If it can't go native it 
offers up a pure js implementation instead.

https://www.npmjs.org/package/bson

On Friday, July 11, 2014 2:55:08 PM UTC-4, Pascal Mathis wrote:
>
> Hello everyone
>
> I am currently trying to offer an *optional native library* for my own 
> Node.js package. My library actually works 6+ (up to 20, didn't test 
> further) times faster than with the plain JS implementation. The drawback: 
> It requires libcrypto++-dev, otherwise the build will fail. Also, it will 
> not work on Windows operating systems. What I am trying to do is to make 
> the node-gyp build process optional, so that npm would continue with 
> installing the package, even if node-gyp fails. Is there any way to do 
> that? I've already looked through various example gyp-files and stumbled 
> upon some documentations, but was not able to find a solution.
>
> Thanks in advance for your answer and have a nice evening!
>
> Best regards
> Pascal
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/430adbc5-2b01-409e-9e1a-47371f80b62e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to