mymonero / mymonero-core-js

The JS library containing the Monero crypto plus lightwallet functions behind the official MyMonero apps
BSD 3-Clause "New" or "Revised" License
101 stars 103 forks source link

add to package.json for easy install/require #4

Closed bradoyler closed 6 years ago

bradoyler commented 6 years ago

For security reasons, I understand why you might not want to add this to npm registry.

But... if we added a package.json it would make it much easier to use this library in a project, via:

$ npm i <repo url> --save

Then in my node or webpack project I could just do:

const walletUtils = require('mymonero-core-js/monero_utils/monero_wallet_utils')

Thoughts?

paulshapiro commented 6 years ago

Hi, thanks for the suggestion. It's tough. This is fine with me, but I would like to accompany such a change with ample notice about the security risk of doing so, with suggestions of best practices to mitigate the risks. Things such as forking the repo and referencing your fork from your package.json file, so that you are in control of what gets installed. Would you like to make the initial PR? I can tweak it to readiness as necessary.

On Jan 20, 2018, at 10:31 AM, brad oyler notifications@github.com wrote:

For security reasons, I understand why you might not want to add this to npm registry.

But... if we added a package.json it would make it much easier to use this library in a project, via:

$ npm i --save Then in my node or webpack project I could just do:

const walletUtils = require('mymonero-core-js/monero_utils/monero_wallet_utils') Thoughts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

bradoyler commented 6 years ago

Yep. Ill put something together. 👍

bradoyler commented 6 years ago

closed via #5

bradoyler commented 6 years ago

@paulshapiro Btw, this was why I was keen on doing this: https://github.com/bradoyler/xmr-paper/commit/4608041f75ab6ac977b00d324b968d1d648d5190 😸