narze/react-useless

[Q] Can we use @type/node in vite ?

Closed this issue · 6 comments

I don't know that can we use @type/node in vite or not.
Because I want to use some stuffs which are come with nodejs. such as crypto to random for truely random ain't like Math.random()

Some of ref. 😭

narze commented

You could try, but in my opinion true randomness seems to be useful 😂

narze commented

Can you emulate them without NodeJS and call it useTrueRandom? :trollface:

Maybe not working.
But If it's work. It will come with expensive cost of setting.

narze commented

got an idea, call random API that claims true randomness 😂
https://www.random.org/clients/http/api/

OK Krub. I'll implement with this one. It should be the best solution for now, hahaha.

narze commented

Will close this as it's irrelevant we don't need to add @type/node anymore