GithubHelp home page GithubHelp logo

How to install this package? about webcrypto HOT 13 OPEN

nodejs avatar nodejs commented on May 29, 2024
How to install this package?

from webcrypto.

Comments (13)

Jack-Works avatar Jack-Works commented on May 29, 2024 2

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)

from webcrypto.

panva avatar panva commented on May 29, 2024 1

This is still just a PoC in progress.

from webcrypto.

tniessen avatar tniessen commented on May 29, 2024 1

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

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).

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?

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 @nodejs to npm packages.

from webcrypto.

ljharb avatar ljharb commented on May 29, 2024

It’s set to private true and lacks a version; i don’t think the prototype is meant to be consumed.

from webcrypto.

Jack-Works avatar Jack-Works commented on May 29, 2024

Oh I use it to replace @trust/webcrypto(stop maintenance) in our test environment

from webcrypto.

weiwu-zhang avatar weiwu-zhang commented on May 29, 2024

Oh I use it to replace @trust/webcrypto(stop maintenance) in our test environment

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 .crypto, right?

from webcrypto.

tniessen avatar tniessen commented on May 29, 2024

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.

from webcrypto.

weiwu-zhang avatar weiwu-zhang commented on May 29, 2024

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.

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!

from webcrypto.

tniessen avatar tniessen commented on May 29, 2024

Would you be so kind to rename the repository?

If we were to publish this, it would likely be under the name @nodejs/webcrypto, so I think the repository name is perfectly reasonable.

from webcrypto.

panva avatar panva commented on May 29, 2024
npm docs webcrypto

this lands you on https://github.com/daviddias/webcrypto#readme, not here. The npm website also has those links displayed.

I agree with @tniessen the repo name is fine.

from webcrypto.

ryzokuken avatar ryzokuken commented on May 29, 2024

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'.

For that, you need to check npm, not GitHub.

from webcrypto.

weiwu-zhang avatar weiwu-zhang commented on May 29, 2024

If we were to publish this, it would likely be under the name @nodejs/webcrypto, so I think the repository name is perfectly reasonable.

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!

from webcrypto.

geeeger avatar geeeger commented on May 29, 2024

Oh I use it to replace @trust/webcrypto(stop maintenance) in our test environment

try @peculiar/webcrypto ? it might be help

from webcrypto.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.