Pages:
Author

Topic: How to use BitcoinJS in a normal website? (not using node.js or anything) - page 2. (Read 8066 times)

newbie
Activity: 13
Merit: 2
I'm trying to use BitcoinJS in a Bitcoin-related website. However, it seems to be written with node.js in mind, whereas I am just building a normal Html5 site.

Normally I just include a 3rd party javascript lib in my own page, and use it from there. However, this BitcoinJS lib has "require()" all over the place, and require.js doesn't help as it also contains references to other (external) stuff, like require('assert') or require('crypto-js') etc, which I assume are node.js specific modules or something.

How do I deal with this? The getting started instructions at bitcoinjs.org seem to involve "$ npm" but I don't know what $ is (is that from jquery, or something unix related?) nor do I know what "npm" is.
Pages:
Jump to: