content-grade 1.0.3 → 1.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.
- package/bin/content-grade.js +21 -12
- package/package.json +1 -1
package/bin/content-grade.js
CHANGED
|
@@ -1094,19 +1094,19 @@ function cmdHelp() {
|
|
|
1094
1094
|
|
|
1095
1095
|
// ── Demo command ──────────────────────────────────────────────────────────────
|
|
1096
1096
|
|
|
1097
|
-
const DEMO_CONTENT = `#
|
|
1097
|
+
const DEMO_CONTENT = `# How to Write Better Blog Posts
|
|
1098
1098
|
|
|
1099
|
-
|
|
1099
|
+
Writing good blog posts is important for any content marketer. Many people struggle with this. In this post I will share some tips that can help you improve.
|
|
1100
1100
|
|
|
1101
|
-
First,
|
|
1101
|
+
First, you need to have a good headline. The headline is the first thing people see. A good headline will make people want to read more. Try to make it interesting.
|
|
1102
1102
|
|
|
1103
|
-
Second,
|
|
1103
|
+
Second, write good content. Your content should be useful and informative. People should learn something from reading your post. Make sure to cover the topic well.
|
|
1104
1104
|
|
|
1105
|
-
Third,
|
|
1105
|
+
Third, use a good structure. Break your content into sections. Use headings and bullet points. This makes it easier to read. People can scan and find what they need.
|
|
1106
1106
|
|
|
1107
|
-
|
|
1107
|
+
Finally, have a good conclusion. Summarize what you talked about. Tell people what to do next. A call to action is important.
|
|
1108
1108
|
|
|
1109
|
-
In conclusion, these
|
|
1109
|
+
In conclusion, following these tips will help you write better blog posts. Good content is important for success online. Start applying these tips today.
|
|
1110
1110
|
`;
|
|
1111
1111
|
|
|
1112
1112
|
async function cmdDemo() {
|
|
@@ -1125,17 +1125,26 @@ async function cmdDemo() {
|
|
|
1125
1125
|
const tmpFile = `/tmp/content-grade-demo-${process.pid}-${Date.now()}.md`;
|
|
1126
1126
|
|
|
1127
1127
|
banner();
|
|
1128
|
-
console.log(` ${B}Demo Mode${R} ${D}—
|
|
1128
|
+
console.log(` ${B}Demo Mode${R} ${D}— see ContentGrade in action${R}`);
|
|
1129
1129
|
blank();
|
|
1130
|
-
console.log(` ${D}
|
|
1131
|
-
console.log(` ${
|
|
1132
|
-
blank();
|
|
1133
|
-
console.log(` ${D}Analyzing sample blog post...${R}`);
|
|
1130
|
+
console.log(` ${D}Analyzing a sample blog post with generic writing.${R}`);
|
|
1131
|
+
console.log(` ${D}Generic content scores low — that's the point. Watch what ContentGrade finds.${R}`);
|
|
1134
1132
|
blank();
|
|
1135
1133
|
|
|
1136
1134
|
writeFileSync(tmpFile, DEMO_CONTENT, 'utf8');
|
|
1137
1135
|
try {
|
|
1138
1136
|
await cmdAnalyze(tmpFile);
|
|
1137
|
+
|
|
1138
|
+
// Post-demo CTA — shown AFTER user has seen the analysis output
|
|
1139
|
+
blank();
|
|
1140
|
+
hr();
|
|
1141
|
+
console.log(` ${B}${CY}Now try it on your own content:${R}`);
|
|
1142
|
+
blank();
|
|
1143
|
+
console.log(` ${CY}content-grade analyze ./your-post.md${R} ${D}# any .md or .txt file${R}`);
|
|
1144
|
+
console.log(` ${CY}content-grade https://your-blog.com/post${R} ${D}# analyze any URL${R}`);
|
|
1145
|
+
console.log(` ${CY}content-grade headline "Your headline here"${R} ${D}# grade a headline${R}`);
|
|
1146
|
+
blank();
|
|
1147
|
+
|
|
1139
1148
|
// Show telemetry notice after user has seen value (first run only)
|
|
1140
1149
|
if (_showTelemNotice) {
|
|
1141
1150
|
console.log(` ${D}Anonymous usage data is collected by default. Opt out: ${CY}content-grade telemetry off${R}`);
|
package/package.json
CHANGED