@scurrlin/stencil 1.22.6 → 1.22.8

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 +15 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,20 +16,28 @@ Whether you are studying for technical interviews, or just starting your coding
16
16
 
17
17
  Most people when they attempt to memorize something study the full text and then attempt to regurgitate it on a blank page. Shocking, I know... but what if there was a step in between? What if memorization and pattern recognition weren't all or nothing games? This is where Stencil comes in.
18
18
 
19
- Stencil is a language-agnostic memorization tool that strips code files down to their first letters while preserving spacing, capitalization, and punctuation. The "stencil" of the file is designed to act as a bridge between having something partially memorized and fully memorized. Below is an example of Stencil in action using LeetCode problem 195 "Tenth Line":
19
+ Stencil is a language-agnostic memorization tool that strips code files down to their first letters while preserving spacing, capitalization, and punctuation. The "stencil" of the file is designed to act as a bridge between having something partially memorized and fully memorized. Below is an example of Stencil in action using LeetCode problem 197 "Rising Temperature":
20
20
 
21
21
  ## Example
22
22
 
23
23
  Solution
24
24
 
25
- ```bash
26
- awk 'NR == 10 {print; exit}' file.txt
25
+ ```sql
26
+ SELECT w1.id
27
+ FROM Weather w1
28
+ JOIN Weather w2
29
+ ON DATE_SUB(w1.recordDate, INTERVAL 1 DAY) = w2.recordDate
30
+ WHERE w1.temperature > w2.temperature;
27
31
  ```
28
32
 
29
33
  Solution with Stencil
30
34
 
31
- ```bash
32
- a 'N == 1 {p; e}' f.t
35
+ ```sql
36
+ S w.i
37
+ F W w
38
+ J W w
39
+ O D_S(w.r, I 1 D) = w.r
40
+ W w.t > w.t;
33
41
  ```
34
42
 
35
43
  ## Local Installation
@@ -43,7 +51,7 @@ npm install @scurrlin/stencil
43
51
  Once installed, you can run it with the following command:
44
52
 
45
53
  ```bash
46
- npx stencil path/to/your/file.sh --start <start_line> --end <end_line>
54
+ npx stencil path/to/your/file.sql --start <start_line> --end <end_line>
47
55
  ```
48
56
 
49
57
  ## Global Installation
@@ -57,5 +65,5 @@ npm install -g @scurrlin/stencil
57
65
  Once installed, you can run it with the following command:
58
66
 
59
67
  ```bash
60
- stencil path/to/your/file.sh --start <start_line> --end <end_line>
68
+ stencil path/to/your/file.sql --start <start_line> --end <end_line>
61
69
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scurrlin/stencil",
3
- "version": "1.22.6",
3
+ "version": "1.22.8",
4
4
  "description": "A memorization tool that strips code down to first letters and punctuation only.",
5
5
  "main": "src/index.js",
6
6
  "bin": {