mirror of
https://github.com/cupcakearmy/npm-security-walkthrough.git
synced 2024-12-22 08:06:30 +00:00
26 lines
295 B
Markdown
26 lines
295 B
Markdown
|
# 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?
|