@ultirequiem/drive-link 1.0.0 → 1.0.1

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.
package/README.md CHANGED
@@ -10,15 +10,15 @@ on the URL or ID.
10
10
 
11
11
  The API is the same on all this platforms ✔️
12
12
 
13
- ### [Deno 🦕](https://deno.land/x/drive-link)
13
+ ### [Deno 🦕](https://deno.land/x/drive_link)
14
14
 
15
15
  ```javascript
16
16
  import { driveLink } from "https://deno.land/x/drive_link/mod.ts";
17
17
 
18
18
  driveLink(
19
- "https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing",
19
+ "https://drive.google.com/file/d/1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh/view?usp=sharing",
20
20
  );
21
- //=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'
21
+ //=> "https://drive.google.com/uc?export=download&id=1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh"
22
22
  ```
23
23
 
24
24
  ### [Node.js 🐢🚀](https://npmjs.com/package/@ultirequiem/drive-link)
package/esm/mod.js CHANGED
@@ -22,8 +22,11 @@ Generate a Google Drive direct download link based on the URL or ID.
22
22
 
23
23
  @example
24
24
  ```javascript
25
- driveLink('https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing');
26
- //=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'
25
+ driveLink(
26
+ "https://drive.google.com/file/d/1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh/view?usp=sharing",
27
+ );
28
+
29
+ //=> "https://drive.google.com/uc?export=download&id=1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh"
27
30
  ```
28
31
  */
29
32
  export function driveLink(URLorID, { apiKey } = {}) {
package/package.json CHANGED
@@ -4,16 +4,16 @@
4
4
  "types": "./types/mod.d.ts",
5
5
  "name": "@ultirequiem/drive-link",
6
6
  "description": "Generate a Google Drive direct download link based on the URL or ID.",
7
- "version": "1.0.0",
7
+ "version": "1.0.1",
8
8
  "homepage": "https://ulti.js.org/drive_link",
9
9
  "license": "MIT",
10
10
  "funding": {
11
11
  "type": "patreon",
12
12
  "url": "https://www.patreon.com/ultirequiem"
13
13
  },
14
- "repository": "github:ultirequiem/drive-link",
14
+ "repository": "github:ultirequiem/drive_link",
15
15
  "bugs": {
16
- "url": "https://github.com/ultirequiem/drive-link/issues",
16
+ "url": "https://github.com/ultirequiem/drive_link/issues",
17
17
  "email": "eliaz.bobadilladev@gmail.com"
18
18
  },
19
19
  "keywords": [
package/script/mod.js CHANGED
@@ -25,8 +25,11 @@ Generate a Google Drive direct download link based on the URL or ID.
25
25
 
26
26
  @example
27
27
  ```javascript
28
- driveLink('https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing');
29
- //=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'
28
+ driveLink(
29
+ "https://drive.google.com/file/d/1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh/view?usp=sharing",
30
+ );
31
+
32
+ //=> "https://drive.google.com/uc?export=download&id=1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh"
30
33
  ```
31
34
  */
32
35
  function driveLink(URLorID, { apiKey } = {}) {
package/types/mod.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export interface DriveOptions {
2
2
  /**
3
- A Drive api key that can be used to exceed the download limit of 100MB.
4
- */
3
+ A Drive api key that can be used to exceed the download limit of 100MB.
4
+ */
5
5
  apiKey?: string;
6
6
  }
7
7
  /**
@@ -11,8 +11,11 @@ Generate a Google Drive direct download link based on the URL or ID.
11
11
 
12
12
  @example
13
13
  ```javascript
14
- driveLink('https://drive.google.com/file/d/1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk/view?usp=sharing');
15
- //=> 'https://drive.google.com/uc?export=download&id=1Px8bePd7pFSz5r6bTA7GKN9HloCzMfFk'
14
+ driveLink(
15
+ "https://drive.google.com/file/d/1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh/view?usp=sharing",
16
+ );
17
+
18
+ //=> "https://drive.google.com/uc?export=download&id=1DvRH-yk1z0HVBK-EmiQeJ_VVh5eHwQXh"
16
19
  ```
17
20
  */
18
21
  export declare function driveLink(URLorID: string, { apiKey }?: DriveOptions): string;