Skip to content

poetic/git-test-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-test-package

POC package for testing out the usage and viability of the git package system using npm.

Installation

Install the package via npm:

npm install git-test-package

Usage

Importing the sum function

import { sum } from 'git-test-package';

const numbers = [1, 2, 3, 4, 5];
const result = sum(numbers);
console.log(result); // Output: 15

const nestedNumbers = [1, 2, [3, 4], 5];
const nestedResult = sum(nestedNumbers);
console.log(nestedResult); // Output: 15

Scripts

  • npm run build: Builds the package using tsup.
  • npm test: Runs the test suite using ts-node.

Development

Prerequisites

  • Node.js
  • npm

Setup

  1. Clone the repository:

    git clone git@github.com:poetic/git-test-package.git
  2. Install dependencies:

    npm install

Running Tests

npm test

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors