@sequencemedia/lsof 0.0.1 → 0.0.3

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.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # `@sequencemedia/lsof`
2
+
3
+ Get a list of open files in a convenient JS structure
4
+
5
+ ```bash
6
+ npm i -P @sequencemedia/lsof
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ Get `lsof` output as a string
12
+
13
+ ```javascript
14
+ import {
15
+ getLsof
16
+ } from '@sequencemedia/lsof'
17
+
18
+ /**
19
+ * ...
20
+ */
21
+
22
+ const string = await getLsof()
23
+ ```
24
+
25
+ Get `lsof` transformed into an array
26
+
27
+ ```javascript
28
+ import {
29
+ getLsofArray
30
+ } from '@sequencemedia/lsof'
31
+
32
+ /**
33
+ * ...
34
+ */
35
+
36
+ const array = await getLsofArray()
37
+ ```
38
+
39
+ Get `lsof` transformed into a set
40
+
41
+ ```javascript
42
+ import {
43
+ getLsofSet
44
+ } from '@sequencemedia/lsof'
45
+
46
+ /**
47
+ * ...
48
+ */
49
+
50
+ const set = await getLsofSet()
51
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/lsof",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "./index.mjs",
5
5
  "type": "module",
6
6
  "author": {
@@ -15,7 +15,11 @@
15
15
  },
16
16
  "scripts": {
17
17
  "lint": "eslint .",
18
- "lint:fix": "npm run lint -- --fix"
18
+ "lint:fix": "npm run lint -- --fix",
19
+ "prepare": "husky"
20
+ },
21
+ "dependencies": {
22
+ "husky": "^9.1.7"
19
23
  },
20
24
  "devDependencies": {
21
25
  "@sequencemedia/eslint-config-standard": "^0.2.52",
package/jsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": "."
4
- }
5
- }
package/tsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "NodeNext",
4
- "target": "ESNext",
5
- "allowJs": true,
6
- "checkJs": true,
7
- "noEmit": true,
8
- "strict": true,
9
- "isolatedModules": true,
10
- "baseUrl": "."
11
- }
12
- }