diff --git a/README.markdown b/README.markdown index 4acacb2..32b3cdf 100644 --- a/README.markdown +++ b/README.markdown @@ -34,7 +34,7 @@ Options: -h, --help display help for command ``` -### Using Programatically +### Using Programmatically ```js const { inject } = require('postject'); @@ -67,7 +67,7 @@ $ npm test ## Design -To ensure maximum capatibility and head off unforeseen issues, the +To ensure maximum compatibility and head off unforeseen issues, the implementation for each format tries to use that format's standard practices for embedding binary data. As such, it should be possible to embed the binary data at build-time as well. The CLI provides the diff --git a/scripts/build.mjs b/scripts/build.mjs index 25c72b5..305efd8 100755 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -38,7 +38,7 @@ await $`esbuild api.js --bundle --platform=node --outfile=../dist/api.js`; await fs.copy("../src/cli.js", "../dist/cli.js"); await fs.copy("../postject-api.h", "../dist/postject-api.h"); -// Repace all occurrences of `__filename` and `__dirname` with "" because +// Replace all occurrences of `__filename` and `__dirname` with "" because // Node.js core doesn't support it. These uses are functionally dead when // `SINGLE_FILE` is enabled anyways. // Refs: https://github.com/postmanlabs/postject/issues/50 diff --git a/src/api.js b/src/api.js index ed833cf..b22fb28 100644 --- a/src/api.js +++ b/src/api.js @@ -128,7 +128,7 @@ async function inject(filename, resourceName, resourceData, options) { if (firstSentinel !== lastSentinel) { throw new Error( - `Multiple occurences of sentinel "${sentinelFuse}" found in the binary` + `Multiple occurrences of sentinel "${sentinelFuse}" found in the binary` ); }