oxpassword / oxpassword-core

GNU General Public License v3.0
0 stars 0 forks source link

Prepare node module structure #2

Open Alkon23 opened 3 months ago

Alkon23 commented 3 months ago

https://docs.npmjs.com/creating-node-js-modules

https://www.moonshot.partners/blog/creating-our-first-node-js-package-with-typescript#:~:text=package%20with%20TypeScript%3F-,The%20process%20of%20creating%20a%20Node.,to%20JavaScript%2C%20configuring%20the%20package.

https://medium.com/@plee_/7-simple-steps-to-build-your-own-typescript-node-js-project-5aea8320a05e

molidev commented 3 months ago

Example of node module structure:

node_module │ ├── src/
│ ├── index.js # Main │ └── utils.js # Other functions │ ├── tests/ # Unit test │ └── index.test.js
│ ├── node_modules/ # Dependencies │ ├── .gitignore
├── package.json
└── README.md