fromdeno / deno2node

Compile your Deno project to run on Node.js.
MIT License
117 stars 3 forks source link

Missing documentation #5

Closed KnorpelSenf closed 3 years ago

KnorpelSenf commented 3 years ago

It would be cool to have a brief overview in the README file about the following things:

  1. How does the tool even work in the first place, i.e. what does it do, and what is it build on?
  2. Should I use the CLI, or a programmatic API?
  3. What does the tool assert about my library (folder structure)?
  4. What is the API?
  5. How to use the CLI?

Some of these things are pretty obvious to answer by reading the source code for a few minutes. However, as time goes by and deno2node gets more complex, these things will become less and less clear for new users.

wojpawlik commented 3 years ago
  1. Should I use the CLI, or a programmatic API?

Whichever better fits the task at hand.

  1. What is the API?

deno doc

  1. How to use the CLI?

https://github.com/wojpawlik/deno2node#usage-from-nodejs

wojpawlik commented 3 years ago
  1. How does the tool even work in the first place, i.e. what does it do

https://github.com/wojpawlik/deno2node/blob/d224750108fcdc70d666b3cc3f9e95e6310a4a47/src/deno2node.ts#L45-L65

what is it build on?

https://github.com/wojpawlik/deno2node/blob/d224750108fcdc70d666b3cc3f9e95e6310a4a47/package.json#L46 https://github.com/wojpawlik/deno2node/blob/d224750108fcdc70d666b3cc3f9e95e6310a4a47/src/deps.deno.ts#L4

  1. What does the tool assert about my library (folder structure)?
wojpawlik commented 3 years ago

I wanted to write more about the API, but frankly I'm not sure how to best use it. I believe I addressed everything else.