@alttiri/util-node-js
Advanced tools
Comparing version 1.5.2 to 1.6.0
{ | ||
"name": "@alttiri/util-node-js", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "Some Node.js util functions", | ||
"keywords": ["color"], | ||
"homepage": "https://github.com/AlttiRi/util-node-js", | ||
"keywords": [ | ||
"color" | ||
], | ||
"homepage": "https://github.com/alttiri/util-node-js", | ||
"license": "MIT", | ||
"type": "module", | ||
"files": ["src", "index.js"], | ||
"files": [ | ||
"src", | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
@@ -19,4 +24,10 @@ "repository": { | ||
"scripts": { | ||
"deploy": "npm publish" | ||
"publish-npm": "npm publish --registry=https://registry.npmjs.org", | ||
"publish-ghp": "npm publish --registry=https://npm.pkg.github.com", | ||
"#": "", | ||
"unpublish-npm": "npm unpublish @alttiri/util-node-js@1.2.3 --registry=https://registry.npmjs.org", | ||
"##": "", | ||
"login-npm": "npm login --registry=https://registry.npmjs.org", | ||
"login-ghp": "npm login --registry=https://npm.pkg.github.com" | ||
} | ||
} |
@@ -5,2 +5,47 @@ # util-node-js | ||
### From NPM | ||
```bash | ||
npm install @alttiri/util-node-js | ||
``` | ||
### From GitHub repository | ||
```bash | ||
npm install git+https://github.com/alttiri/util-node-js.git | ||
``` | ||
<details> | ||
<summary>More ways</summary> | ||
### From GitHub repository (a specific version): | ||
- **Based on SemVer:** | ||
```bash | ||
npm install git+https://github.com/alttiri/util-node-js.git#semver:1.6.0 | ||
``` | ||
Or add | ||
``` | ||
"@alttiri/util-node-js": "github:alttiri/util-node-js#semver:1.6.0" | ||
``` | ||
as `dependencies` in `package.json` file. | ||
See available [tags](https://github.com/AlttiRi/util-node-js/tags). | ||
- **Based on a commit hash:** | ||
```bash | ||
npm install git+https://git@github.com/alttiri/util-node-js.git#c98d3919e9002fa5738680a2c76004fd12746ce3 | ||
``` | ||
Or add | ||
``` | ||
"@alttiri/util-node-js": "github:alttiri/util-node-js#c98d3919e9002fa5738680a2c76004fd12746ce3" | ||
``` | ||
as `dependencies` in `package.json` file. | ||
See available [commits hashes](https://github.com/AlttiRi/util-node-js/commits/master). | ||
### From GitHub Packages: | ||
@@ -17,15 +62,8 @@ To install you need fisrt to create `.npmrc` file with `@alttiri:registry=https://npm.pkg.github.com` content: | ||
``` | ||
Note, that GitHub Packages requires to have also `~/.npmrc` file with `//npm.pkg.github.com/:_authToken=TOKEN` content, where `TOKEN` is a token with the `read:packages` permission, take it here https://github.com/settings/tokens/new. | ||
Note, that GitHub Packages requires to have also `~/.npmrc` file (`.npmrc` in your home dir) with `//npm.pkg.github.com/:_authToken=TOKEN` content, where `TOKEN` is a token with the `read:packages` permission, take it here https://github.com/settings/tokens/new. | ||
### From GitHub: | ||
Install the lastest version from GitHub directly: | ||
```bash | ||
npm install git+https://github.com/alttiri/util-node-js.git | ||
``` | ||
To install a specific version (based on git tag): | ||
```bash | ||
npm install git+https://github.com/alttiri/util-node-js.git#semver:1.5.2 | ||
``` | ||
No need extra actions. | ||
</details> | ||
16753
68