mirror of
https://github.com/cupcakearmy/npm-security-walkthrough.git
synced 2024-12-21 15:46:31 +00:00
initial
This commit is contained in:
commit
734fb9a1b0
25
README.md
Normal file
25
README.md
Normal 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
12
package.json
Normal 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
5
src/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
sum(a, b) {
|
||||
return a + b
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user