# funckage

> Functions to be used in the shade of greater projects.

Latest version **0.2.0** (published 2023-05-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install funckage
pnpm add funckage
yarn add funckage
bun add funckage
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-05-27 |
| First published | 2023-02-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | igmrrf |
| Maintainers | igmrrf |
| Keywords | Lodash, Funckage, Functions |

## Links

- npm: https://www.npmjs.com/package/funckage
- Repository: https://github.com/igmrrf/funckage
- Homepage: https://github.com/igmrrf/funckage#readme
- Issues: https://github.com/igmrrf/funckage/issues
- npm.io page: https://npm.io/package/funckage

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2023-05-27
- 0.1.9 — 2023-05-27
- 0.1.8 — 2023-05-27
- 0.1.7 — 2023-05-27
- 0.1.6 — 2023-05-08
- 0.1.5 — 2023-05-08
- 0.1.4 — 2023-03-30
- 0.1.3 — 2023-03-30
- 0.1.2 — 2023-03-30
- 0.1.1 — 2023-02-05
- 0.0.1 — 2023-02-05

## README

## FUNCKAGE

###### FUNCTIONS (We all know what this is.) - KAGE (shadow, shade, other side and shadows.)

#

#

### LOCAL STORAGE

Add data to localStorage temporarily without the need to delete them manually.

```javascript
import { store } from 'funckage'

const login (userData)=>{
  const response = await api.call("/login-url")
  const { token } = response;

  // default ttl of 24hours (key, data, ttl)
  store.setWithExpiry('token', token)
}
```

Then you can access it within the ttl;

```javascript
import { store } from 'funckage'

const getUserData (userData)=>{
  // will return null if queried after ttl
  const token = store.getWithExpiry('token')

  const response = await api.call("/get-data-url", { headers: { 'auth-token': token } } )
  // use response in application
}
```

### Arrays

Basically a package for custom Javascript Functions to be used in the shade of greater projects.

---
_Source: https://npm.io/package/funckage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
