mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
feat(plugins): use @tauri-apps namespace on NPM (#368)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
committed by
GitHub
parent
caf8456864
commit
22991af9f4
@@ -51,7 +51,7 @@ fn main() {
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import * as app from "tauri-plugin-app-api";
|
||||
import * as app from "@tauri-apps/plugin-app";
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
@@ -30,7 +30,7 @@ import { invoke } from "@tauri-apps/api/tauri";
|
||||
* Gets the application version.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getVersion } from 'tauri-plugin-app-api';
|
||||
* import { getVersion } from '@tauri-apps/plugin-app';
|
||||
* const appVersion = await getVersion();
|
||||
* ```
|
||||
*
|
||||
@@ -44,7 +44,7 @@ async function getVersion(): Promise<string> {
|
||||
* Gets the application name.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getName } from 'tauri-plugin-app-api';
|
||||
* import { getName } from '@tauri-apps/plugin-app';
|
||||
* const appName = await getName();
|
||||
* ```
|
||||
*
|
||||
@@ -59,7 +59,7 @@ async function getName(): Promise<string> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getTauriVersion } from 'tauri-plugin-app-api';
|
||||
* import { getTauriVersion } from '@tauri-apps/plugin-app';
|
||||
* const tauriVersion = await getTauriVersion();
|
||||
* ```
|
||||
*
|
||||
@@ -74,7 +74,7 @@ async function getTauriVersion(): Promise<string> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { show } from 'tauri-plugin-app-api';
|
||||
* import { show } from '@tauri-apps/plugin-app';
|
||||
* await show();
|
||||
* ```
|
||||
*
|
||||
@@ -89,7 +89,7 @@ async function show(): Promise<void> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { hide } from 'tauri-plugin-app-api';
|
||||
* import { hide } from '@tauri-apps/plugin-app';
|
||||
* await hide();
|
||||
* ```
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tauri-plugin-app-api",
|
||||
"name": "@tauri-apps/plugin-app",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user