Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

use-shit

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-shit - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+55
Readme.md
# use-shit
![NPM License](https://img.shields.io/npm/l/use-shit)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/use-shit)
> The best use-hook ever made.
Use-shit is not just a tool. It is the best idea ever made
## Installation:
```bash
npm i use-shit
```
## Usage
```ts
import { useShit } from 'use-shit';
const REAL_SHIT = [1, 2, 3, 4];
const [shit] = useShit(REAL_SHIT); // shit === REAL_SHIT
```
## Example
```tsx
import React from 'react';
import { useShit } from 'use-shit';
const REAL_SHIT = [1, 2, 3, 4];
export function App() {
const [shit] = useShit(REAL_SHIT);
return (
<>
<p>Thanks god, My code is beautiful!</p>
<ul>
{ shit.map((slice) => (
<li key={slice}>{slice}</li>
)) }
</ul>
</>
);
}
```
If you are thinking why not just use the `REAL_SHIT`, you are not a true hook based developer. Althorugh `REAL_SHIT` is equal to `shit`, but it's always nice to have some unnessesury `useShit` in body of components.
## License
[MIT](./LICENSE)
---
![Static Badge](https://img.shields.io/badge/don't-use_shit-green)
+16
-0
# Changelog
## v0.0.2
[compare changes](https://github.com/nainemom/use-shit/compare/v0.0.1...v0.0.2)
### 🩹 Fixes
- Readme badges ([d612e22](https://github.com/nainemom/use-shit/commit/d612e22))
### 🏡 Chore
- Create readme ([0310e6f](https://github.com/nainemom/use-shit/commit/0310e6f))
### ❤️ Contributors
- Amir Momenian <nainemom@gmail.com>
## v0.0.1

@@ -5,0 +21,0 @@

+1
-1
{
"name": "use-shit",
"version": "0.0.1",
"version": "0.0.2",
"description": "The best use-hook ever made.",

@@ -5,0 +5,0 @@ "type": "module",