Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scope name #72

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading