-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update npm-publish.yml v 1.0.0
- Loading branch information
Showing
12 changed files
with
1,746 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#play and test npm package | ||
|
||
_play | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
# util | ||
|
||
## JavaScript Functions to save time | ||
## TypeScript-ready JavaScript Functions to save time | ||
|
||
Some useful Javascript functions that I use. | ||
Some useful TypeScript/JavaScript functions that I use. | ||
|
||
Install | ||
|
||
```cmd | ||
npm i @amitind/util | ||
``` | ||
|
||
Use in Project | ||
|
||
```js | ||
import { randomString } from '@amitind/util'; | ||
``` | ||
|
||
or | ||
|
||
```js | ||
const { randomNumber } = require('@amitind/util'); | ||
``` | ||
|
||
## Functions | ||
|
||
- randomString | ||
- randomNumber | ||
- binary | ||
- shuffleArray | ||
- randomArrayItem | ||
- randomItemsArray | ||
- uniqueArrayitems |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,49 @@ | ||
{ | ||
"name": "@amitind/util", | ||
"version": "0.1.2", | ||
"description": "Some useful Javascript functions that I use.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Amitind/util.git" | ||
}, | ||
"keywords": [ | ||
"util", | ||
"javascript", | ||
"js", | ||
"utility" | ||
], | ||
"author": "Amit Yadav", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Amitind/util/issues" | ||
}, | ||
"homepage": "https://www.npmjs.com/package/@amitind/util", | ||
"files": [ | ||
"index.js", | ||
"README.md", | ||
"LICENSE" | ||
] | ||
"name": "@amitind/util", | ||
"version": "1.0.0", | ||
"description": "Some useful Javascript functions that I use.", | ||
"type": "module", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"dev:build": "rimraf dist && pnpm build --watch", | ||
"build": "tsc && vite build", | ||
"test": "echo \"No tests\"", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Amitind/util.git" | ||
}, | ||
"keywords": [ | ||
"util", | ||
"javascript", | ||
"js", | ||
"utility" | ||
], | ||
"author": "Amit Yadav", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Amitind/util/issues" | ||
}, | ||
"homepage": "https://www.npmjs.com/package/@amitind/util", | ||
"devDependencies": { | ||
"path": "^0.12.7", | ||
"rimraf": "^6.0.1", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.8", | ||
"vite-plugin-dts": "^4.2.4" | ||
} | ||
} |
Oops, something went wrong.