diff --git a/.cspell.json b/.cspell.json
index 4d88d4de47..a6ca74d477 100644
--- a/.cspell.json
+++ b/.cspell.json
@@ -29,15 +29,17 @@
"jszip",
"rsid",
"NUMPAGES",
- "ATLEAST"
+ "ATLEAST",
+ "ooxml",
+ "clippy"
],
"ignoreRegExpList": [
- "/w:.+/",
- "/s:.+/",
- "/a:.+/",
- "/pic:.+/",
- "/xmlns:.+/",
- "/vt:.+/",
+ "/\"w:.+\"/",
+ "/\"s:.+\"/",
+ "/\"a:.+\"/",
+ "/\"pic:.+\"/",
+ "/\"xmlns:.+\"/",
+ "/\"vt:.+\"/",
"/[^\\s]{40,}/",
"/](https://www.circadianrisk.com/)
[
](https://lexense.com/)
-
...and many more!
---
diff --git a/demo/10-my-cv.ts b/demo/10-my-cv.ts
index 2a3f6bbabf..ef766d6656 100644
--- a/demo/10-my-cv.ts
+++ b/demo/10-my-cv.ts
@@ -43,7 +43,7 @@ interface Skill {
readonly name: string;
}
-interface Achivement {
+interface Achievement {
readonly issuer: string;
readonly name: string;
}
@@ -64,7 +64,7 @@ const experiences: Experience[] = [
{
isCurrent: false,
summary:
- "Full-stack developer working with Angular, Node and TypeScript. Working for the iShares platform. Emphasis on Dev-ops and developing the continous integration pipeline.",
+ "Full-stack developer working with Angular, Node and TypeScript. Working for the iShares platform. Emphasis on Dev-ops and developing the continuous integration pipeline.",
title: "Software Developer",
endDate: {
month: 11,
@@ -98,6 +98,7 @@ const experiences: Experience[] = [
{
isCurrent: false,
summary:
+ // cspell:disable-next-line
"Develop web commerce platforms for various high profile clients.\n\nCreated a log analysis web application with the Play Framework in Java, incorporating Test Driven Development. It asynchronously uploads and processes large (2 GB) log files, and outputs meaningful results in context with the problem. \n\nAnalysis and development of the payment system infrastructure and user accounts section to be used by several clients of the company such as Waitrose, Tally Weijl, DJ Sports, Debenhams, Ann Summers, John Lewis and others.\n\nTechnologies used include WebSphere Commerce, Java, JavaScript and JSP.",
title: "Java Developer",
endDate: {
@@ -118,7 +119,7 @@ const education: Education[] = [
{
degree: "Master of Science (MSc)",
fieldOfStudy: "Computer Science",
- notes: "Exam Results: 1st Class with Distinction, Dissertation: 1st Class with Distinction\n\nRelevant Courses: Java and C# Programming, Software Engineering, Artificial Intelligence, \nComputational Photography, Algorithmics, Architecture and Hardware.\n\nCreated a Windows 8 game in JavaScript for the dissertation. \n\nCreated an award-winning 3D stereoscopic game in C# using XNA.",
+ notes: "Exam Results: 1st Class with Distinction, Dissertation: 1st Class with Distinction\n\nRelevant Courses: Java and C# Programming, Software Engineering, Artificial Intelligence, \nComputational Photography, Algorithms, Architecture and Hardware.\n\nCreated a Windows 8 game in JavaScript for the dissertation. \n\nCreated an award-winning 3D stereoscopic game in C# using XNA.",
schoolName: "University College London",
startDate: {
year: 2012,
@@ -156,7 +157,7 @@ const skills: Skill[] = [
},
];
-const achievements: Achivement[] = [
+const achievements: Achievement[] = [
{
issuer: "Oracle",
name: "Oracle Certified Expert",
@@ -165,7 +166,7 @@ const achievements: Achivement[] = [
class DocumentCreator {
// tslint:disable-next-line: typedef
- public create([experiences, educations, skills, achivements]: [Experience[], Education[], Skill[], Achivement[]]): Document {
+ public create([experiences, educations, skills, achievements]: [Experience[], Education[], Skill[], Achievement[]]): Document {
const document = new Document({
sections: [
{
@@ -221,7 +222,7 @@ class DocumentCreator {
this.createSubHeading("Skills"),
this.createSkillList(skills),
this.createSubHeading("Achievements"),
- ...this.createAchivementsList(achivements),
+ ...this.createAchievementsList(achievements),
this.createSubHeading("Interests"),
this.createInterests("Programming, Technology, Music Production, Web Design, 3D Modelling, Dancing."),
this.createHeading("References"),
@@ -318,8 +319,8 @@ class DocumentCreator {
}
// tslint:disable-next-line:no-any
- public createAchivementsList(achivements: any[]): Paragraph[] {
- return achivements.map(
+ public createAchievementsList(achievements: any[]): Paragraph[] {
+ return achievements.map(
(achievement) =>
new Paragraph({
text: achievement.name,
diff --git a/demo/2-declaritive-styles.ts b/demo/2-declaritive-styles.ts
index 6af4120574..11e306b07e 100644
--- a/demo/2-declaritive-styles.ts
+++ b/demo/2-declaritive-styles.ts
@@ -1,4 +1,4 @@
-// Example on how to customise the look at feel using Styles
+// Example on how to customize the look at feel using Styles
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import {
diff --git a/demo/21-bookmarks.ts b/demo/21-bookmarks.ts
index decb882be0..5ae3a35ec3 100644
--- a/demo/21-bookmarks.ts
+++ b/demo/21-bookmarks.ts
@@ -1,9 +1,21 @@
// This demo shows how to create bookmarks then link to them with internal hyperlinks
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
-import { Bookmark, Document, Footer, HeadingLevel, InternalHyperlink, Packer, PageBreak, Paragraph, TextRun, PageReference } from "../build";
+import {
+ Bookmark,
+ Document,
+ Footer,
+ HeadingLevel,
+ InternalHyperlink,
+ Packer,
+ PageBreak,
+ Paragraph,
+ TextRun,
+ PageReference,
+} from "../build";
const LOREM_IPSUM =
+ /* cspell:disable-next-line */
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam mi velit, convallis convallis scelerisque nec, faucibus nec leo. Phasellus at posuere mauris, tempus dignissim velit. Integer et tortor dolor. Duis auctor efficitur mattis. Vivamus ut metus accumsan tellus auctor sollicitudin venenatis et nibh. Cras quis massa ac metus fringilla venenatis. Proin rutrum mauris purus, ut suscipit magna consectetur id. Integer consectetur sollicitudin ante, vitae faucibus neque efficitur in. Praesent ultricies nibh lectus. Mauris pharetra id odio eget iaculis. Duis dictum, risus id pellentesque rutrum, lorem quam malesuada massa, quis ullamcorper turpis urna a diam. Cras vulputate metus vel massa porta ullamcorper. Etiam porta condimentum nulla nec tristique. Sed nulla urna, pharetra non tortor sed, sollicitudin molestie diam. Maecenas enim leo, feugiat eget vehicula id, sollicitudin vitae ante.";
const doc = new Document({
diff --git a/docs/README.md b/docs/README.md
index 6e06856207..36a857d6c6 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -27,24 +27,26 @@ import { Document, Packer, Paragraph, TextRun } from "docx";
// Documents contain sections, you can have multiple sections per document, go here to learn more about sections
// This simple example will only contain one section
const doc = new Document({
- sections: [{
- properties: {},
- children: [
- new Paragraph({
- children: [
- new TextRun("Hello World"),
- new TextRun({
- text: "Foo Bar",
- bold: true,
- }),
- new TextRun({
- text: "\tGithub is the best",
- bold: true,
- }),
- ],
- }),
- ],
- }],
+ sections: [
+ {
+ properties: {},
+ children: [
+ new Paragraph({
+ children: [
+ new TextRun("Hello World"),
+ new TextRun({
+ text: "Foo Bar",
+ bold: true,
+ }),
+ new TextRun({
+ text: "\tGithub is the best",
+ bold: true,
+ }),
+ ],
+ }),
+ ],
+ },
+ ],
});
// Used to export the file into a .docx file
@@ -56,6 +58,7 @@ Packer.toBuffer(doc).then((buffer) => {
```
+