From 043e1333311a1e942b5d93587a9f34693a005983 Mon Sep 17 00:00:00 2001 From: Dong Nguyen Date: Sun, 23 Jun 2024 10:25:38 +0700 Subject: [PATCH] Add scope name --- README.md | 16 ++++++++-------- deno.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 92e7827..569d6d1 100644 --- a/README.md +++ b/README.md @@ -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'); @@ -75,7 +75,7 @@ sentence(); ```html ``` diff --git a/deno.json b/deno.json index f3b1cac..dd56f01 100644 --- a/deno.json +++ b/deno.json @@ -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",