Skip to content

Commit e7d4f31

Browse files
committed
Add Fuckin' Usage in README
1 parent fc666ad commit e7d4f31

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@
66

77
Because I faced this problem while making [Meta Preview](https://twitter.com/deadcoder0904/status/1048129409885122560)
88

9+
## Usage
10+
11+
Just replace the `script` variable in `index.js` with the contents of your inline script & run `index.js`
12+
13+
## Example
14+
15+
If your inline script is like -
16+
17+
```js
18+
<script>alert('Yo Yo Yo!')</script>
19+
```
20+
21+
then replace `script` variable in `index.js` like -
22+
23+
```js
24+
const script = `alert('Yo Yo Yo!')`;
25+
```
26+
27+
& type in terminal
28+
29+
```bash
30+
node index.js
31+
```
32+
33+
Voila, it will copy the hash to the clipboard.
34+
935
## Credits
1036

1137
All the credits go to https://stackoverflow.com/a/38554505/6141587

0 commit comments

Comments
 (0)