Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
ndaidong committed Jun 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9ae5ea7 commit 46ddb39
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,8 +32,7 @@ for (let i = 0; i < 5; i++) {
}
```

In Deno, you can optionally use JSR packages without an install step using
`jsr:` specifiers:
You can use JSR packages without an install step using `jsr:` specifiers:

```ts
import { sentence } from "jsr:@ndaidong/txtgen";
@@ -43,7 +42,7 @@ for (let i = 0; i < 5; i++) {
}
```

You can still use `npm:` specifiers as before:
You can also use `npm:` specifiers as before:

```ts
import { sentence } from "npm:@ndaidong/txtgen";
@@ -97,7 +96,8 @@ for (let i = 0; i < 5; i++) {

```html
<script type="module">
import { sentence } from 'https://unpkg.com/@ndaidong/txtgen/esm/mod.js';
import { sentence } from "https://esm.sh/@ndaidong/txtgen";
// import { sentence } from 'https://unpkg.com/@ndaidong/txtgen/esm/mod.js';
for (let i = 0; i < 5; i++) {
console.log(sentence());
@@ -147,7 +147,7 @@ alternative word.
For example:

```js
import { addTemplates } from "txtgen";
import { addTemplates } from "@ndaidong/txtgen";

const templates = [
"{{a_noun}} is {{a_noun}} from the right perspective",
@@ -178,7 +178,7 @@ lorem(Number min, Number max)// set the minimum/maximum number of words
Example:

```js
import { lorem } from "txtgen";
import { lorem } from "@ndaidong/txtgen";

const phrase = lorem();
console.log(phrase); // => nisi blandit feugiat tempus imperdiet etiam eu mus augue
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ndaidong/txtgen",
"version": "4.0.0-rc2",
"version": "4.0.0",
"description": "Util for generating random sentences, paragraphs and articles in English",
"homepage": "https://github.com/ndaidong/txtgen",
"repository": {

0 comments on commit 46ddb39

Please sign in to comment.