support package managers by publishing to npmjs.org
This isn't a small topic. Looking at:
http://know.cujojs.com/tutorials/modules/authoring-amd-modules
http://darrenderidder.github.io/talks/ModulePatterns/#/
and the example of crypto-js usage using bower:
https://github.com/brix/crypto-js
suggests that I can package for npmjs.com.
Comments (9)
-
-
Hey thanks for the encouragement. I have recently started a npm version with the intention of publishing it.
With regards to typescript bindings the API is hex or decimal encoded strings. Not working typescript environment I am not sure whether folks would use more complex structured types (or even it such a thing is possible in typescript).
Can you raise a seperate issue for typescript bindings where strings vs BigNumber vs value object types can be discussed (once again I don't know what's possible so lets discuss it on an issue)?
-
reporter @madmarkus given the choices in typescript would you like to propose an issue with a suggestion of how the big numbers used in SRP are typed? http://definitelytyped.org/guides/best-practices.html
-
reporter I have just completed issue
#17which created a pure JS server side class. I needed that for the npm version so that node can test the client and server code against each other. -
cool! thank a lot for the work on this :) I'll get back with a proposal, yes :)
-
reporter Just so that I don't loose the link this article has some good steps about spending up a CI build and ensuring it doesn't break.
https://medium.com/@bestander_nz/my-node-modules-are-in-git-again-4fb18f5671a
Found that via the morning paper blog:
https://blog.acolyer.org/2017/11/20/dejavu-a-map-of-code-duplicates-on-github/
Was wondering how to depend on people but not have them injection future vulnerabilities. That mechanism would seem like a good idea.
-
reporter Hey @madmarkus I have thought about typescript a bit and concluded I may have been over thinking it a bit. I will raise a new issue for it and sketch an outline on it for your consideration.
-
reporter - changed status to resolved
Now live on NPM at https://www.npmjs.com/package/thinbus-srp
The code is on GitHub at https://github.com/simbo1905/thinbus-srp-npm
Enjoy!
-
reporter @madmarkus if you could try out the npm version at the link above and let me know that would be a great help. thanks.
- Log in to comment
I encourage you to do this, also adding typescript bindings would be very useful to adopt this package ;)