commit 734fb9a1b05984e69830614a78f97c657eeaf1a8 Author: cupcakearmy Date: Tue Apr 6 17:47:48 2021 +0200 initial diff --git a/README.md b/README.md new file mode 100644 index 0000000..433c284 --- /dev/null +++ b/README.md @@ -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? diff --git a/package.json b/package.json new file mode 100644 index 0000000..2647643 --- /dev/null +++ b/package.json @@ -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" + ] +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..492bf4c --- /dev/null +++ b/src/index.js @@ -0,0 +1,5 @@ +module.exports = { + sum(a, b) { + return a + b + }, +}