Skip to content

Commit fc5c7d0

Browse files
committed
Refactoring
1 parent 56db3a5 commit fc5c7d0

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
[![npm version](https://badge.fury.io/js/js-seo-ingector.svg)](https://npmjs.com/package/js-seo-ingector) [![npm](https://img.shields.io/npm/dt/js-seo-ingector)](https://npmjs.com/package/js-seo-ingector) ![npm bundle size](https://img.shields.io/bundlephobia/min/js-seo-ingector) ![GitHub](https://img.shields.io/github/license/elius94/js-seo-ingector)
1+
[![npm version](https://badge.fury.io/js/seo-injector.svg)](https://npmjs.com/package/seo-injector) [![npm](https://img.shields.io/npm/dt/seo-injector)](https://npmjs.com/package/seo-injector) ![npm bundle size](https://img.shields.io/bundlephobia/min/seo-injector) ![GitHub](https://img.shields.io/github/license/elius94/seo-injector)
22

3-
# js-seo-ingector
3+
# seo-injector
44
A Javascript command to automatically modify the main html file (like index.html) to add the provided SEO meta tags and more. Designed for Create React App.
55
For example you can use it to add on the build time the following meta tags: title, description, open graph, twitter, icons and more.
66

7-
[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=elius94&repo=js-seo-ingector&theme=github_dark&show_icons=true)](https://github.com/Elius94/js-seo-ingector) [![https://nodei.co/npm/js-seo-ingector.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/js-seo-ingector.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/js-seo-ingector)
7+
[![Readme Card](https://github-readme-stats.vercel.app/api/pin/?username=elius94&repo=seo-injector&theme=github_dark&show_icons=true)](https://github.com/Elius94/seo-injector) [![https://nodei.co/npm/seo-injector.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/seo-injector.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/seo-injector)
88

99
## Usage
1010
```bash
11-
npx js-seo-ingector
11+
npx seo-injector
1212
```
1313

1414
## Demostration
@@ -51,7 +51,7 @@ to this:
5151
```json
5252
"scripts": {
5353
"start": "react-scripts start",
54-
"build": "react-scripts build && npx js-seo-ingector",
54+
"build": "react-scripts build && npx seo-injector",
5555
"test": "react-scripts test",
5656
"eject": "react-scripts eject"
5757
},

package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "js-seo-ingector",
3-
"version": "1.0.5",
2+
"name": "seo-ingector",
3+
"version": "1.0.7",
44
"description": "A Javascript command to automatically modify the main html file (like index.html) to add the provided SEO meta tags and more. Designed for Create React App.",
55
"main": "./src/index.js",
66
"scripts": {
@@ -26,12 +26,12 @@
2626
"license": "MIT",
2727
"repository": {
2828
"type": "git",
29-
"url": "git+https://github.com/Elius94/js-seo-ingector.git"
29+
"url": "git+https://github.com/Elius94/seo-injector.git"
3030
},
3131
"bugs": {
32-
"url": "https://github.com/Elius94/js-seo-ingector/issues"
32+
"url": "https://github.com/Elius94/seo-injector/issues"
3333
},
34-
"homepage": "https://github.com/Elius94/js-seo-ingector#readme",
34+
"homepage": "https://github.com/Elius94/seo-injector#readme",
3535
"devDependencies": {
3636
"chai": "^4.3.6",
3737
"mocha": "^5.2.0"

src/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function printHelp() {
189189
return `\n\nJS SEO Ingector - v${version}\n\n` +
190190
`A Javascript command to automatically modify the main html file (like index.html) to add the provided SEO meta tags and more. Designed for Create React App.\n` +
191191
'It does not replace the existing meta tags, but adds them to the head of the html file.\n\n' +
192-
`Usage: npx js-seo-ingector [options]\n\n` +
192+
`Usage: npx seo-injector [options]\n\n` +
193193
`Options:\n` +
194194
` --help Print this help message\n` +
195195
` --version Print the version of this tool\n` +
@@ -228,8 +228,8 @@ function printHelp() {
228228
` "manifest": "https://example.com/manifest.json"\n` +
229229
`}\n\n` +
230230
`Examples:\n` +
231-
` npx js-seo-ingector --verbose\n` +
232-
` npx js-seo-ingector --base-path=./my-project --build-dir=build --file=index.html --config=seo.json\n` +
231+
` npx seo-injector --verbose\n` +
232+
` npx seo-injector --base-path=./my-project --build-dir=build --file=index.html --config=seo.json\n` +
233233
`\n\n`;
234234
}
235235

0 commit comments

Comments
 (0)