Skip to content

Commit f29b09c

Browse files
authored
Merge pull request #17 from spyshiv/rename-package
rename package => dummytextjs
2 parents 1be7358 + d7674f5 commit f29b09c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# 🧠 dummytext
1+
# 🧠 dummytextjs
22

3-
**dummytext** is a lightweight utility to generate realistic dummy text (words, sentences, or paragraphs) for development and testing. It also supports automatic injection of dummy content into HTML elements via the `data-dummy` attribute.
3+
**dummytextjs** is a lightweight utility to generate realistic dummy text (words, sentences, or paragraphs) for development and testing. It also supports automatic injection of dummy content into HTML elements via the `data-dummy` attribute.
44

55
---
66

@@ -17,7 +17,7 @@
1717
## 📦 Installation
1818

1919
```bash
20-
npm install dummytext
20+
npm install dummytextjs
2121
```
2222

2323
---
@@ -32,7 +32,7 @@ import {
3232
generateSentences,
3333
generateParagraphs,
3434
autoInjectDummyContent
35-
} from "dummytext";
35+
} from "dummytextjs";
3636
```
3737

3838
---
@@ -50,7 +50,7 @@ import {
5050
5151
<script setup>
5252
import { ref, onMounted } from "vue";
53-
import { generateWords } from "dummytext";
53+
import { generateWords } from "dummytextjs";
5454
5555
const dummyText = ref("");
5656
@@ -69,7 +69,7 @@ onMounted(() => {
6969
7070
<script setup>
7171
import { onMounted } from "vue";
72-
import { autoInjectDummyContent } from "dummytext";
72+
import { autoInjectDummyContent } from "dummytextjs";
7373
7474
onMounted(() => {
7575
autoInjectDummyContent();
@@ -85,7 +85,7 @@ onMounted(() => {
8585

8686
```tsx
8787
import React, { useEffect, useState } from "react";
88-
import { generateSentences } from "dummytext";
88+
import { generateSentences } from "dummytextjs";
8989

9090
function App() {
9191
const [text, setText] = useState("");
@@ -104,7 +104,7 @@ export default App;
104104

105105
```tsx
106106
import React, { useEffect } from "react";
107-
import { autoInjectDummyContent } from "dummytext";
107+
import { autoInjectDummyContent } from "dummytextjs";
108108

109109
function App() {
110110
useEffect(() => {
@@ -130,7 +130,7 @@ export default App;
130130

131131
```ts
132132
import { Component, OnInit } from "@angular/core";
133-
import { generateParagraphs } from "dummytext";
133+
import { generateParagraphs } from "dummytextjs";
134134

135135
@Component({
136136
selector: "app-dummy",
@@ -149,7 +149,7 @@ export class DummyComponent implements OnInit {
149149

150150
```ts
151151
import { Component, AfterViewInit } from "@angular/core";
152-
import { autoInjectDummyContent } from "dummytext";
152+
import { autoInjectDummyContent } from "dummytextjs";
153153

154154
@Component({
155155
selector: "app-auto-dummy",
@@ -206,7 +206,7 @@ Automatically finds elements with the `data-dummy` attribute and injects dummy t
206206
<p data-dummy="1p"></p>
207207

208208
<script type="module">
209-
import { autoInjectDummyContent } from "dummytext";
209+
import { autoInjectDummyContent } from "dummytextjs";
210210
211211
autoInjectDummyContent();
212212
</script>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "dummytext",
2+
"name": "dummytextjs",
33
"version": "3.0.0",
44
"description": "A plug-and-play dummy content generator for words, sentences, and paragraphs — with built-in auto-injection for Vue, React, and Angular apps using HTML data attributes.",
5-
"main": "./dist/dummytext.umd.js",
6-
"module": "./dist/dummytext.es.js",
5+
"main": "./dist/dummytextjs.umd.js",
6+
"module": "./dist/dummytextjs.es.js",
77
"files": [
88
"dist"
99
],

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default defineConfig({
55
build: {
66
lib: {
77
entry: resolve(__dirname, "src/index.ts"),
8-
name: "dummytext",
9-
fileName: (format) => `dummytext.${format}.js`
8+
name: "dummytextjs",
9+
fileName: (format) => `dummytextjs.${format}.js`
1010
},
1111
rollupOptions: {
1212
external: ["vue", "react", "angular"],

0 commit comments

Comments
 (0)