June 2016
Beginner
248 pages
5h 18m
English
If you create some code that would be useful to others, you can distribute it as an npm package. To demonstrate this, we'll implement some slightly more complex functionality.
You can find the example code for this section at https://github.com/NodeJsForDevelopers/autotoc. Note that, unlike previous chapters, there is not one per commit per heading. The listings in the rest of this section match the final version of the code.
We're going to implement a tool for generating a table of contents (ToC) by crawling a website. To help with this, we'll make use of a few other npm packages:
Read now
Unlock full access