-
Notifications
You must be signed in to change notification settings - Fork 20
How to install this package? #47
Comments
It’s set to private true and lacks a version; i don’t think the prototype is meant to be consumed. |
Oh I use it to replace @trust/webcrypto(stop maintenance) in our test environment |
This is still just a PoC in progress. |
As I filed issue #49 this wouldn't work as a drop-in replacement unless you change the code that uses the library as well, since @trust/webcrypto exposes crypto object directly and yours through |
Sorry, I wasn't particularly active on GitHub recently. This project is a protoype and so far, I have been the only person working on it. Less recently, due to a perceived lack of interest, and the realization that this likely never be a competitive implementation. Oh, and also because some things are really difficult to implement. WebCrypto doesn't do things the Node.js way, and Node.js doesn't do things the WebCrypto way. |
This is like the jsdom library. It's useful for testing. ✨ (I use it to test web app) |
Would you be so kind to rename the repository? The reason is that I came here first because I thought this is the repo of the code that gets installed through 'npm install webcrypto'. Something like tniessen-WebCrypto would be a good name (or move it away from github.com/nodejs and into a more personal namespace like github.com/tniessen - if that exists). Really appreciated! |
If we were to publish this, it would likely be under the name |
npm docs webcrypto this lands you on I agree with @tniessen the repo name is fine. |
For that, you need to check npm, not GitHub. |
Without going against your decision (it's yours) I am just curious whether or not github.com/nodejs has anything to do with nodejs.org, and if they belong to the same entity, why the future name of this package is not just 'webcrypto' like most other packages using nodejs? On pavn's note, yes I learned the hard way that one should look at npm website to find the github repo of a npm package. I have been using google for this purpose a few years without realising I was doing it wrong! |
https://github.com/nodejs is the GitHub organization of the Node.js project. The official website of the Node.js project is https://nodejs.org (the code behind the website is in https://github.com/nodejs/nodejs.org). So yes, both the GitHub organization "nodejs" and the domain "nodejs.org" belong to the Node.js project, which is now part of the OpenJS Foundation (formerly Node.js Foundation).
For two reasons: First, the name "webcrypto" is already taken, the package already exists. We cannot simply remove a third-party package from npm. Second, unlike modules such as "fs" and "crypto", this is not a part of Node.js core, it is not a built-in module. Instead, it needs to be installed via npm, and we are leaning towards adding the namespace |
try @peculiar/webcrypto ? it might be help |
It seems like this package doesn't publish on the
npm
. When I try to install via git,yarn add git://github.com/nodejs/webcrypto --ignore-scripts -D
, it reportserror Can't add undefined: invalid package version undefined.
The text was updated successfully, but these errors were encountered: