opsnippets 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +49 -0
- package/package.json +4 -3
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,15 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "opsnippets",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.2",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"type": "module",
|
7
7
|
"types": "dist/index.d.ts",
|
8
|
+
|
8
9
|
"scripts": {
|
9
10
|
"build": "npx rollup -c"
|
10
11
|
},
|
11
|
-
"keywords": [],
|
12
|
-
"author": "",
|
12
|
+
"keywords": ["code","snippets","block","code block","snippets generator"],
|
13
|
+
"author": "om pharate",
|
13
14
|
"license": "ISC",
|
14
15
|
"devDependencies": {
|
15
16
|
"@rollup/plugin-babel": "^6.0.4",
|