Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

module name "crypto" conflicts with node's own "crypto" module #2

Open
525c1e21-bd67-4735-ac99-b4b0e5262290 opened this issue May 5, 2012 · 4 comments

Comments

@525c1e21-bd67-4735-ac99-b4b0e5262290

No description provided.

@Gozala
Copy link
Owner

Gozala commented May 7, 2012

I'll try to convince nodejs folks to allow shadowing built-in modules with dependencies. It looks like there is no other reason than legacy for node to look in node/lib/ before package/node_modules/.

@mscdex
Copy link

mscdex commented Mar 4, 2013

How would you imagine being able to require() the built-in crypto if this module is found as well?

@charleshross
Copy link

Is there a point to using this lib instead of the native one? Now I'm confused

@mscdex
Copy link

mscdex commented May 12, 2014

@charleshross not if you're using node. These crypto functions were implemented entirely in JavaScript so my guess is that they were intended to be some kind of API-compatible version of node's built-in crypto module, but for the browser. Nowadays for that kind of situation there's a start of a module for browserify here.

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

No branches or pull requests

4 participants