@mark1russell7/guidebook-preparedness 0.7.5 → 0.7.7
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/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +179 -5
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/chart.ts +3 -3
- package/src/data/sources.ts +2 -0
- package/src/data/topics.ts +3 -2
- package/src/data/units.ts +175 -0
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/guidebook-preparedness",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.7",
|
|
5
5
|
"description": "The preparedness content of the guidebook: cited sources, the steps and marked gaps of 12 cases and 6 cuts, 40 topics in 12 areas, and the catalog of offline bundles.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"guidebook",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@mark1russell7/guidebook": "0.1.1",
|
|
59
59
|
"@mark1russell7/guidebook-library": "0.2.0",
|
|
60
|
-
"@mark1russell7/guidebook-plans": "0.
|
|
60
|
+
"@mark1russell7/guidebook-plans": "0.3.0",
|
|
61
61
|
"@mark1russell7/guidebook-topics": "0.1.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
package/src/data/chart.ts
CHANGED
|
@@ -15,13 +15,13 @@ const ALL: readonly Phase[] = ["ready", "warned", "P0", "P1", "P2", "P3", "P4",
|
|
|
15
15
|
export function tabsOf(cases: readonly string[], cuts: readonly string[]): readonly Tab[] {
|
|
16
16
|
return [
|
|
17
17
|
{ id: "start", title: "Start: the master chart", keys: [], phases: [], pages: 4 },
|
|
18
|
-
{ id: "first-72h", title: "The first 72 hours", keys: [...cases, "gas.main"], phases: ["warned", "P0", "P1", "P2"], pages:
|
|
19
|
-
{ id: "stay", title: "Stay: the home and the building", keys: ["home.dwelling"], phases: ALL, pages:
|
|
18
|
+
{ id: "first-72h", title: "The first 72 hours", keys: [...cases, "gas.main"], phases: ["warned", "P0", "P1", "P2"], pages: 5 },
|
|
19
|
+
{ id: "stay", title: "Stay: the home and the building", keys: ["home.dwelling"], phases: ALL, pages: 10 },
|
|
20
20
|
{ id: "go", title: "Go: the routes and the other places", keys: ["road.local"], phases: ALL, pages: 4 },
|
|
21
21
|
{ id: "water", title: "Water and sanitation", keys: ["water.main", "sewer.main", "hydration.drink"], phases: ALL, pages: 6 },
|
|
22
22
|
{ id: "heat", title: "Heat, shelter and power", keys: ["power.grid", "gas.main", "fuel.retail", "power.electric"], phases: ALL, pages: 6 },
|
|
23
23
|
{ id: "health", title: "Health and medicine", keys: ["care.local", "health.medicine", "health.medical-emergency"], phases: ALL, pages: 8 },
|
|
24
|
-
{ id: "food", title: "Food", keys: ["food.retail", "food.energy"], phases: ALL, pages:
|
|
24
|
+
{ id: "food", title: "Food", keys: ["food.retail", "food.energy"], phases: ALL, pages: 7 },
|
|
25
25
|
{ id: "security", title: "The safety of the people", keys: ["security.civil-unrest", "security.armed-conflict"], phases: ALL, pages: 6 },
|
|
26
26
|
{ id: "group", title: "Contact, the group and trade", keys: ["phone.network", "network.access", "cash.retail", "society.services"], phases: ALL, pages: 6 },
|
|
27
27
|
{ id: "long-term", title: "The long term: 5 weeks to 5 years", keys: cuts, phases: ["P3", "P4", "P5"], pages: 10 },
|
package/src/data/sources.ts
CHANGED
|
@@ -29,6 +29,8 @@ export const SOURCES: readonly Source[] = [
|
|
|
29
29
|
federal("ready-safety", "Ready.gov", "Safety Skills", "https://www.ready.gov/safety-skills"),
|
|
30
30
|
federal("cdc-co", "CDC", "Carbon Monoxide Poisoning Basics", "https://www.cdc.gov/carbon-monoxide/about/index.html"),
|
|
31
31
|
federal("cdc-water", "CDC", "How to Make Water Safe in an Emergency", "https://www.cdc.gov/water-emergency/about/index.html"),
|
|
32
|
+
{ ...federal("cdc-water-store", "CDC", "How to Create an Emergency Water Supply", "https://www.cdc.gov/water-emergency/about/how-to-create-and-store-an-emergency-water-supply.html"), checked: "2026-11-23" },
|
|
33
|
+
{ ...federal("epa-water-disinfect", "U.S. Environmental Protection Agency", "Emergency Disinfection of Drinking Water", "https://www.epa.gov/ground-water-and-drinking-water/emergency-disinfection-drinking-water"), checked: "2026-11-23" },
|
|
32
34
|
federal("fda-drugs", "FDA", "Safe Drug Use After a Natural Disaster", "https://www.fda.gov/drugs/emergency-preparedness-drugs/safe-drug-use-after-natural-disaster"),
|
|
33
35
|
// The text of the Wikimedia projects is CC BY-SA 4.0 (Terms of Use, section 7, in effect from 2023-06-07).
|
|
34
36
|
{ id: "wikipedia-en", title: "Wikipedia, the English edition", url: "https://en.wikipedia.org/", license: "cc-by-sa-4.0", checked: CHECKED, by: "Wikipedia contributors" },
|
package/src/data/topics.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// The topics of the preparedness content: 40 topics in 12 areas, as a graph of prerequisites.
|
|
2
|
-
// Each topic names the bundles that hold it
|
|
2
|
+
// Each topic names the bundles that hold it, and its cited units: the units whose id starts with the topic id and a dot.
|
|
3
3
|
|
|
4
4
|
import type { Topic } from "@mark1russell7/guidebook-topics";
|
|
5
|
+
import { TOPIC_UNITS } from "./units.ts";
|
|
5
6
|
|
|
6
7
|
/** The areas of the topics. */
|
|
7
8
|
export const AREAS = [
|
|
@@ -52,7 +53,7 @@ const topic = (id: string, title: string, requires: readonly string[] = [], extr
|
|
|
52
53
|
title,
|
|
53
54
|
area,
|
|
54
55
|
requires,
|
|
55
|
-
units:
|
|
56
|
+
units: TOPIC_UNITS.filter((unit) => unit.id.startsWith(`${id}.`)).map((unit) => unit.id),
|
|
56
57
|
bundles: ["wikipedia-mini", "wikipedia-all", ...AREA_BUNDLES[area], ...(extra.bundles ?? [])],
|
|
57
58
|
serves: extra.serves ?? (serve === undefined ? [] : [serve]),
|
|
58
59
|
};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// The cited units of the topics. Each unit id starts with the id of its topic and a dot.
|
|
2
|
+
// The text of each unit is in the words of the guidebook: a summary or a fact, not a quote.
|
|
3
|
+
// A Wikipedia locator names the article, the section and the revision that the summary reads.
|
|
4
|
+
|
|
5
|
+
import type { CitedUnit } from "@mark1russell7/guidebook";
|
|
6
|
+
|
|
7
|
+
const wiki = (article: string, section: string, revision: number): string => `${article}, section ${section} (revision ${revision})`;
|
|
8
|
+
|
|
9
|
+
/** The units of the water topics. */
|
|
10
|
+
const WATER: readonly CitedUnit[] = [
|
|
11
|
+
{
|
|
12
|
+
id: "water.sources.home",
|
|
13
|
+
use: "summary",
|
|
14
|
+
text: "Look for water in the home first: ice cubes, the hot water tank and the pipes. Water that flows in a river or lake is better than still water. Do not use water with floating material, a dark color or a bad odor. Treat the water of each source.",
|
|
15
|
+
source: "epa-water-disinfect",
|
|
16
|
+
locator: "Additional Water Guidance",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "water.sources.heating",
|
|
20
|
+
use: "fact",
|
|
21
|
+
text: "Do not drink, cook or wash with the water of the radiators or the boiler of a home heating system.",
|
|
22
|
+
source: "cdc-water",
|
|
23
|
+
locator: "Overview",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "water.sources.chemicals",
|
|
27
|
+
use: "fact",
|
|
28
|
+
text: "Boiling and disinfection cannot make water with fuel, toxic chemicals or radioactive material safe. Use bottled water or a different source.",
|
|
29
|
+
source: "cdc-water",
|
|
30
|
+
locator: "Water with fuel or toxic chemicals in it",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "water.sources.rain",
|
|
34
|
+
use: "summary",
|
|
35
|
+
text: "Rain is clean when it falls. But a roof and a tank add bird and animal feces, dust and other pollution. When you send the first flow of each rain to waste, much of this pollution goes with it. Treat roof water before you drink it.",
|
|
36
|
+
source: "wikipedia-en",
|
|
37
|
+
locator: wiki("Rainwater harvesting", "Quality of water", 1385816262),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "water.boil.steps",
|
|
41
|
+
use: "summary",
|
|
42
|
+
text: "Let cloudy water settle, or filter it through a clean cloth, a paper towel or a coffee filter. Bring the clear water to a rolling boil for 1 minute, or for 3 minutes above 6,500 feet. Let it cool. Store it in clean containers with tight covers.",
|
|
43
|
+
source: "cdc-water",
|
|
44
|
+
locator: "Boil, Steps for boiling water",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "water.boil.best",
|
|
48
|
+
use: "fact",
|
|
49
|
+
text: "Boiling is the best way to kill germs in water. Chemical disinfectants do not kill the parasites Cryptosporidium and Giardia as well as boiling.",
|
|
50
|
+
source: "cdc-water",
|
|
51
|
+
locator: "Key points, and Disinfect",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "water.boil.limits",
|
|
55
|
+
use: "fact",
|
|
56
|
+
text: "Boiling and disinfection do not remove heavy metals, salts and most other chemicals.",
|
|
57
|
+
source: "epa-water-disinfect",
|
|
58
|
+
locator: "The first paragraph",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "water.boil.taste",
|
|
62
|
+
use: "summary",
|
|
63
|
+
text: "Boiled water tastes flat. Pour it from one clean container to another, then let it stand for a few hours. Or add a pinch of salt to each quart or liter.",
|
|
64
|
+
source: "cdc-water",
|
|
65
|
+
locator: "Boil, Making boiled water taste better",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "water.disinfect.bleach",
|
|
69
|
+
use: "fact",
|
|
70
|
+
text: "Use regular, unscented chlorine bleach with 6% or 8.25% sodium hypochlorite. Add 2 drops to each quart or liter of water. To each gallon, add 8 drops of 6% bleach or 6 drops of 8.25% bleach. Use double the bleach for water that is cloudy, colored or very cold.",
|
|
71
|
+
source: "epa-water-disinfect",
|
|
72
|
+
locator: "The table of bleach amounts",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "water.disinfect.wait",
|
|
76
|
+
use: "summary",
|
|
77
|
+
text: "Stir the water, then let it stand for 30 minutes. Then the water has a slight odor of chlorine. If it has no odor, add the same amount of bleach again and wait 15 more minutes.",
|
|
78
|
+
source: "epa-water-disinfect",
|
|
79
|
+
locator: "Disinfect water using household bleach",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "water.disinfect.fresh",
|
|
83
|
+
use: "fact",
|
|
84
|
+
text: "Use fresh bleach, or bleach that stayed at room temperature for less than one year. Do not use scented or color-safe bleach, or bleach with added cleaners.",
|
|
85
|
+
source: "epa-water-disinfect",
|
|
86
|
+
locator: "Disinfect water using household bleach",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: "water.disinfect.iodine",
|
|
90
|
+
use: "fact",
|
|
91
|
+
text: "With no bleach, add 5 drops of 2% tincture of iodine to each quart or liter of water. Add 10 drops to cloudy or colored water. Let it stand for at least 30 minutes.",
|
|
92
|
+
source: "epa-water-disinfect",
|
|
93
|
+
locator: "Other Disinfection Methods, Common household iodine",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: "water.disinfect.iodine-who",
|
|
97
|
+
use: "fact",
|
|
98
|
+
text: "Do not give water with iodine to a person who is pregnant, has thyroid problems or is sensitive to iodine. Nobody drinks water with iodine for more than a few weeks at a time.",
|
|
99
|
+
source: "cdc-water",
|
|
100
|
+
locator: "Who should avoid water disinfected with iodine",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "water.disinfect.crypto",
|
|
104
|
+
use: "fact",
|
|
105
|
+
text: "Iodine and chlorine tablets do not kill Cryptosporidium. Chlorine dioxide tablets kill it when you follow their instructions.",
|
|
106
|
+
source: "cdc-water",
|
|
107
|
+
locator: "If Cryptosporidium is in your water",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "water.filter.pore",
|
|
111
|
+
use: "fact",
|
|
112
|
+
text: "A portable filter removes bacteria only with an absolute pore size of 0.3 micron or smaller. It removes parasites such as Giardia and Cryptosporidium only with 1 micron or smaller. A filter does not remove all germs.",
|
|
113
|
+
source: "cdc-water",
|
|
114
|
+
locator: "Filter, Using a filter",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "water.filter.viruses",
|
|
118
|
+
use: "summary",
|
|
119
|
+
text: "Most portable pump filters remove bacteria and protozoa, but not most viruses. After the filter, disinfect the water with a chemical or with ultraviolet light.",
|
|
120
|
+
source: "wikipedia-en",
|
|
121
|
+
locator: wiki("Portable water purification", "Filtration", 1381126756),
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "water.filter.homemade",
|
|
125
|
+
use: "summary",
|
|
126
|
+
text: "A filter of sand and charcoal made on site is not reliable, and it removes few germs. Boil the water after such a filter.",
|
|
127
|
+
source: "wikipedia-en",
|
|
128
|
+
locator: wiki("Portable water purification", "Homemade water filters", 1381126756),
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "water.filter.slow-sand",
|
|
132
|
+
use: "summary",
|
|
133
|
+
text: "A slow sand filter cleans water with a biofilm. The biofilm grows on the fine sand in the first 10 to 20 days. It needs no chemicals and no electricity, but it needs clear water. A good filter removes 90% to 99% of the bacteria.",
|
|
134
|
+
source: "wikipedia-en",
|
|
135
|
+
locator: wiki("Slow sand filter", "Method of operation, and Features", 1386975984),
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "water.store.amount",
|
|
139
|
+
use: "summary",
|
|
140
|
+
text: "Store at least 1 gallon of water for each person for each day, for 3 days. If you can, store a supply for 2 weeks. Store more for a pregnant woman, a sick person, pets or a hot climate.",
|
|
141
|
+
source: "cdc-water-store",
|
|
142
|
+
locator: "How much emergency water to store, and Other considerations",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "water.store.containers",
|
|
146
|
+
use: "summary",
|
|
147
|
+
text: "Use food-grade water containers. Or use a container with a tight top, made of a strong material that does not break, not glass. Do not use a container that held a toxic chemical, such as bleach or a pesticide.",
|
|
148
|
+
source: "cdc-water-store",
|
|
149
|
+
locator: "Choosing a container, and Don't use unsafe containers",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "water.store.clean",
|
|
153
|
+
use: "summary",
|
|
154
|
+
text: "Wash the container with soap and rinse it. Mix 1 teaspoon of unscented bleach with 5% to 9% sodium hypochlorite in 1 quart of water. Shake it in the closed container, wait 30 seconds, pour it out and let the container dry.",
|
|
155
|
+
source: "cdc-water-store",
|
|
156
|
+
locator: "Cleaning the container before use, Steps to take",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "water.store.keep",
|
|
160
|
+
use: "summary",
|
|
161
|
+
text: "Write \"drinking water\" and the date on each container. Replace the water every 6 months. Keep it at 50 °F to 70 °F, out of direct sunlight and away from gasoline and pesticides.",
|
|
162
|
+
source: "cdc-water-store",
|
|
163
|
+
locator: "Storing the water",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "water.store.bleach",
|
|
167
|
+
use: "fact",
|
|
168
|
+
text: "Store a bottle of unscented liquid chlorine bleach with 5% to 9% sodium hypochlorite. Use it to disinfect water and to clean.",
|
|
169
|
+
source: "cdc-water-store",
|
|
170
|
+
locator: "Other considerations",
|
|
171
|
+
},
|
|
172
|
+
];
|
|
173
|
+
|
|
174
|
+
/** The cited units of the topics. The units of the other areas come in later changes. */
|
|
175
|
+
export const TOPIC_UNITS: readonly CitedUnit[] = [...WATER];
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { OPEN_CELLS } from "./data/coverage.ts";
|
|
|
13
13
|
export { RULES } from "./data/rules.ts";
|
|
14
14
|
export { CATALOG_TAB, MASTER, START_TAB } from "./data/chart.ts";
|
|
15
15
|
export { AREAS, TOPICS } from "./data/topics.ts";
|
|
16
|
+
export { TOPIC_UNITS } from "./data/units.ts";
|
|
16
17
|
export { BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS } from "./data/bundles.ts";
|
|
17
18
|
export { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LIVES, MEDIUM_LOSSES } from "./data/media.ts";
|
|
18
19
|
|