This commit is contained in:
cupcakearmy 2021-04-06 17:47:48 +02:00
commit 734fb9a1b0
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
3 changed files with 42 additions and 0 deletions

25
README.md Normal file
View File

@ -0,0 +1,25 @@
# Awesome Utility
This is a package for amazing utility.
Tired of writing `1 + 2`? just use `sum(1, 2)`!
## Installation
```sh
yarn add amazing-utility
```
## Usage
```js
import { sum } from 'amazing-utility'
// Before
// const x = 1 + 2
// After
const x = sum(1, 2)
```
Amazing right?

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "amazing-utility",
"version": "1.0.0",
"description": "Amazing Utility that every dev needs",
"main": "./src/index.js",
"repository": "https://github.com/cupcakearmy/npm-security-walkthrough",
"author": "Niccolo Borgioli",
"license": "MIT",
"files": [
"src"
]
}

5
src/index.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
sum(a, b) {
return a + b
},
}