Skip to content

Commit

Permalink
Add scope name
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Jun 23, 2024
1 parent 898ced2 commit 043e133
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,31 @@ sentence();
You can still use `npm:` specifiers as before:

```ts
import { sentence } from 'npm:txtgen';
import { sentence } from 'npm:@ndaidong/txtgen';
sentence();
```

Or import from esm.sh

```ts
import { sentence } from 'https://esm.sh/txtgen';
import { sentence } from 'https://esm.sh/@ndaidong/txtgen';
sentence();
```

### Node.js & Bun

```bash
npm i txtgen
npm i @ndaidong/txtgen
# pnpm
pnpm i txtgen
pnpm i @ndaidong/txtgen
# yarn
yarn add txtgen
yarn add @ndaidong/txtgen
# bun
bun add txtgen
bun add @ndaidong/txtgen
```

```js
import { sentence } from 'txtgen';
import { sentence } from '@ndaidong/txtgen';

// CommonJS environment
// const { sentence } = require('txtgen');
Expand All @@ -75,7 +75,7 @@ sentence();

```html
<script type="module">
import { sentence } from 'https://unpkg.com/txtgen/esm/mod.js'
import { sentence } from 'https://unpkg.com/@ndaidong/txtgen/esm/mod.js'
console.log(sentence())
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "txtgen",
"name": "@ndaidong/txtgen",
"version": "4.0.0rc1",
"description": "Util for generating random sentences, paragraphs and articles in English",
"homepage": "https://github.com/ndaidong/txtgen",
Expand Down

0 comments on commit 043e133

Please sign in to comment.