Skip to content

Commit

Permalink
Merge pull request #75 from ndaidong/4.0.0rc1
Browse files Browse the repository at this point in the history
v4.0.0
  • Loading branch information
ndaidong authored Jun 23, 2024
2 parents 66294e1 + 46ddb39 commit 83b96dd
Show file tree
Hide file tree
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
Expand Up @@ -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";
Expand All @@ -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";
Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
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": {
Expand Down

0 comments on commit 83b96dd

Please sign in to comment.