For the sake of this guide, I will choose the name my-awesome-greeter, but use a unique name so you can publish your package to npm later on □. Since there are 700k+ packages, make a quick search on to make sure your awesome name is not already taken. Package names have to be in pascal-case and in lowercase. node -v v17.8.0 npm -v 8.5.5 Pick a great name Make sure you have the latest version of node and npm. Even if the one using your package doesn’t use Typescript, some editors, like Visual Studio Code will still use the type-definitions to give the user better IntelliSense.Strong typings are more self-documenting and make the code more understandable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |