opsnippets 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +49 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Installation
2
+
3
+ ```bash
4
+ npm i opsnippets
5
+ ```
6
+
7
+ # Usage
8
+
9
+
10
+ ```javascript
11
+ import { CodeBlock} from "demo"
12
+ function App() {
13
+ const code = `
14
+ import React from 'react';
15
+ import CodeSnippet from './CodeSnippet';
16
+ const App = () => {
17
+ return (
18
+ <div>
19
+ <h1>My Code Snippet Example</h1>
20
+ <CodeSnippet />
21
+ </div>
22
+ );
23
+ };
24
+ export default App;`
25
+ return (
26
+ <>
27
+ <CodeBlock code={code} />
28
+ </>
29
+ )
30
+ }
31
+ export default App;
32
+ ```
33
+ <a href="https://imgbb.com/"><img src="https://i.ibb.co/gVrTCJN/Screenshot-from-2024-08-10-18-12-35.png" border="0"></a>
34
+
35
+
36
+ ```javascript
37
+ import { OneLineBlock} from "demo"
38
+ function App() {
39
+ return (
40
+ <>
41
+ <OneLineBlock command="npm i mongoose" />
42
+ </>
43
+ )
44
+ }
45
+ export default App;
46
+ ```
47
+
48
+
49
+ <a href="https://imgbb.com/"><img src="https://i.ibb.co/vYJqrrc/Screenshot-from-2024-08-10-18-13-23.png" alt="Screenshot-from-2024-08-10-18-13-23" border="0"></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opsnippets",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",