0.0.3 • Published 1 year ago
open-tools v0.0.3
Open Tools NPM Package
Package Link: https://www.npmjs.com/package/open-tools
Note Before
git commit
, runnpm run check
to check if the test cases are passing.
How to add a function
For example, we want to add a function for addition of two numbers.
- Create a new folder
add-two-numbers
insrc
folder. - Add a file
index.ts
in the folder with the TypeScript code for the function. - Add a file
test.ts
in the__test__
folder with the test cases for the function. - Add an export statement in
src/index.ts
for the function.
src/
├── add-two-numbers // Function Name
| |
│ ├── index.ts // Function Code
| |
│ └── __test__
│ └── test.ts // Test Cases
|
└── index.ts // Export Statement