Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sydinh/sydinh-node-package
My first node-package :rocket: https://www.npmjs.com/package/sydinh-node-package
https://github.com/sydinh/sydinh-node-package
my-repo npm-package
Last synced: 2 months ago
JSON representation
My first node-package :rocket: https://www.npmjs.com/package/sydinh-node-package
- Host: GitHub
- URL: https://github.com/sydinh/sydinh-node-package
- Owner: sydinh
- Created: 2020-03-14T05:42:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T05:01:50.000Z (over 4 years ago)
- Last Synced: 2024-04-29T03:41:03.289Z (9 months ago)
- Topics: my-repo, npm-package
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sydinh-node-package v1.0.5
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
The sydinh-node-package library exported as Node.js modules.
## Requirements
- node & npm
- git## Installation
```
$ npm i -g npm
$ npm i sydinh-node-package
```## Usage
```Javascript
// imports whole library
import { add, subtract } from 'sydinh-node-package';// imports whole library too because the *src/index.js* from the library imports/exports subtract function
import { add } from 'sydinh-node-package';// imports add as standalone function without import whole library
import add from 'sydinh-node-package/lib/add';// imports subtract as standalone function without import whole library
import subtract from 'sydinh-node-package/lib/subtract';add(1, 1); // expected output: 2
subtract(1, 1); // expected output: 0
```
## Contributors ✨Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!