https://github.com/restuwahyu13/node-own-package
step by step how to build your own package library in nodejs using javascript and typescript
https://github.com/restuwahyu13/node-own-package
commonjs esm javascript module nodejs-modules npm-package tutorial-sourcecode
Last synced: 5 months ago
JSON representation
step by step how to build your own package library in nodejs using javascript and typescript
- Host: GitHub
- URL: https://github.com/restuwahyu13/node-own-package
- Owner: restuwahyu13
- Created: 2020-12-21T14:47:30.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-21T16:05:47.000Z (almost 5 years ago)
- Last Synced: 2025-05-07T04:42:41.652Z (5 months ago)
- Topics: commonjs, esm, javascript, module, nodejs-modules, npm-package, tutorial-sourcecode
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Create Your Own Package Library
**Berikut** ini adalah tutorial step by step panduan cara membuat **Package Library** untuk `Nodejs Application` menggunakan `TypeScript` dan `JavaScript`, semoga dengan adanya tutorial ini anda dapat membuat **Package Library** anda sendiri, yang nantinya bisa anda gunakan sendiri atau anda bisa bagikan kepada orang lain.
### Table Of Content
- [Get Started](#get-started)
- [Setup Package Library](https://github.com/restuwahyu13/node-own-package/blob/main/content/Setup_Application.md)
- [NPM Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/NPM_Setup.md)
- [Travis CI Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/CI_Setup.md)
- [Coveralls Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Coveralls_Setup.md)
- [Prettier Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Prettier_Setup.md)
- [Jest Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Jest_Setup.md)
- [Eslint Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Eslint_Config.md)
- [Editor Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Editor_Config.md)
- [TypeScript Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/TypeScript_Setup.md)
- [Package JSON Introduction](https://github.com/restuwahyu13/node-own-package/blob/main/content/Package_Structure.md)
- [Different Package Versions](https://github.com/restuwahyu13/node-own-package/blob/main/content/DPV.md)### Different Library Packages
- **Nodejs JavaScript Package Library** jika anda membuat package library menggunakan `Javascript`, package library tersebut hanya bisa di jalankan di module commonjs saja tidak bisa di jalankan menggunakan module esm module
```javascript
const { addition } = require('node-math')
const output = addition(8, 2)
console.log(output)
```- **Nodejs TypeScript Package Library** jika anda membuat package library menggunakan `Typescript`, package library tersebut bisa di jalankan di module commonjs dan esm module
```typescript
const { addition } = require('node-math-ts')
const output = addition(8, 2)
console.log(output)
``````typescript
import { addition } from 'node-math-ts'
const output = addition(8, 2)
console.log(output)
```### Challenge From Me
Silahkan pamerkan `package library` anda setelah mengikuti tutorial yang saya berikan ini, untuk menginspirasi teman - teman yang lainnya, silahkan clone repository berikut ini, kemudian taruh `package library` yang sudah anda buat di `modules folder`, sesuai dengan type `package library` yang telah anda buat, untuk `readmenya` silahkan ikuti contoh `package library` yang sudah ada sebelumnya.
### Author
- **[Restu Wahyu Saputra](https://github.com/restuwahyu13)**