Skip to content

Commit

Permalink
Update import names
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadnasriya committed Jun 7, 2024
1 parent d1dd18e commit 3486201
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ Generating UUID is never easier.

### Installation
```shell
npm i nasriyasoftware/uuidx
npm i @nasriya/uuidx
```

### Importing
Import in **ES6** modules
```ts
import uuidx from 'nasriya-uuidx';
import uuidx from '@nasriya/uuidx';
```
Import in **CommonJS (CJS)**
```js
const uuidx = require('nasriya-uuidx').default;
const uuidx = require('@nasriya/uuidx').default;
```
### Usage

Expand Down
31 changes: 24 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "uuidx",
"name": "@nasriya/uuidx",
"version": "1.0.0",
"description": "A lightweight package to generate UUIDs on the go.",
"main": "dist/cjs/uuidX.cjs",
Expand All @@ -15,18 +15,35 @@
"types": "./dist/@types/uuidX.d.ts"
}
},
"publishConfig": {
"provenance": true
},
"repository": {
"type": "git",
"url": "https://github.com/nasriyasoftware/UUIDX"
},
"keywords": [
"uuid-generator",
"uuid4",
"uuid-v4",
"uuidv5",
"uuid-v5"
],
"maintainers": [
{
"name": "Ahmad Nasriya",
"email": "ahmad@nasriya.net",
"url": "https://www.linkedin.com/in/ahmadnasriya/"
}
],
"scripts": {
"build": "npm run build:esm && npm run build:cjs && mod-js && ns-copySrc",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"test": "jest"
},
"repository": {
"type": "git",
"url": "https://github.com/nasriyasoftware/UUIDX"
},
"author": "Nasriya Software, LLC.",
"license": "Nasriya Software License",
"license": "Nasriya License",
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/ms": "^0.7.34",
Expand All @@ -37,4 +54,4 @@
"ts-jest": "^29.1.2",
"typescript": "^5.4.5"
}
}
}

0 comments on commit 3486201

Please sign in to comment.