cli-cobalt 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
1
  # Cobalt unofficial CLI
2
2
  ![Cobalt Banner](banner.png)
3
3
 
4
- I made this because of a [tweet](https://x.com/justusecobalt/status/1788828537908068668) the [Cobalt Twitter Account](https://twitter.com/justusecobalt)
4
+ I made this because of a [tweet](https://x.com/justusecobalt/status/1788828537908068668) on the [Cobalt Twitter Account](https://twitter.com/justusecobalt)
5
5
 
6
6
  ## installation
7
7
 
8
8
  ### NPM
9
9
  ```
10
- npm i -g cobalt-cli
10
+ npm i -g cli-cobalt
11
11
  ```
12
12
 
13
13
  ### PNPM
14
14
  ```
15
- pnpm i -g cobalt-cli
15
+ pnpm i -g cli-cobalt
16
16
  ```
17
17
 
18
18
  ### Bun
19
19
  ```
20
- bun i -g cobalt-cli
20
+ bun i -g cli-cobalt
21
21
  ```
22
22
 
23
23
  ### Yarn
package/index.js CHANGED
@@ -35,12 +35,12 @@ program
35
35
  api.get(streamUrl, {
36
36
  responseType: 'stream'
37
37
  }).then(response => {
38
- const path = `${__dirname}/${options.output}`
38
+ const path = `${process.cwd()}/${options.output}`
39
39
  const writer = fs.createWriteStream(path);
40
40
  response.data.pipe(writer);
41
41
 
42
42
  writer.on('finish', () => {
43
- console.log(chalk.green("Downloaded successfully!"));
43
+ console.log(chalk.green("Downloaded successfully!", `Saved to ${path}`));
44
44
  });
45
45
 
46
46
  writer.on('error', (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-cobalt",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"