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 os from "tauri-plugin-os-api";
|
||||
import * as os from "@tauri-apps/plugin-os";
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
@@ -68,7 +68,7 @@ const EOL = isWindows() ? "\r\n" : "\n";
|
||||
* The value is set at compile time. Possible values are `'linux'`, `'darwin'`, `'ios'`, `'freebsd'`, `'dragonfly'`, `'netbsd'`, `'openbsd'`, `'solaris'`, `'android'`, `'win32'`
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { platform } from 'tauri-plugin-os-api';
|
||||
* import { platform } from '@tauri-apps/plugin-os';
|
||||
* const platformName = await platform();
|
||||
* ```
|
||||
*
|
||||
@@ -83,7 +83,7 @@ async function platform(): Promise<Platform> {
|
||||
* Returns a string identifying the kernel version.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { version } from 'tauri-plugin-os-api';
|
||||
* import { version } from '@tauri-apps/plugin-os';
|
||||
* const osVersion = await version();
|
||||
* ```
|
||||
*
|
||||
@@ -97,7 +97,7 @@ async function version(): Promise<string> {
|
||||
* Returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { type } from 'tauri-plugin-os-api';
|
||||
* import { type } from '@tauri-apps/plugin-os';
|
||||
* const osType = await type();
|
||||
* ```
|
||||
*
|
||||
@@ -112,7 +112,7 @@ async function type(): Promise<OsType> {
|
||||
* Possible values are `'x86'`, `'x86_64'`, `'arm'`, `'aarch64'`, `'mips'`, `'mips64'`, `'powerpc'`, `'powerpc64'`, `'riscv64'`, `'s390x'`, `'sparc64'`.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { arch } from 'tauri-plugin-os-api';
|
||||
* import { arch } from '@tauri-apps/plugin-os';
|
||||
* const archName = await arch();
|
||||
* ```
|
||||
*
|
||||
@@ -126,7 +126,7 @@ async function arch(): Promise<Arch> {
|
||||
* Returns the operating system's default directory for temporary files as a string.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { tempdir } from 'tauri-plugin-os-api';
|
||||
* import { tempdir } from '@tauri-apps/plugin-os';
|
||||
* const tempdirPath = await tempdir();
|
||||
* ```
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tauri-plugin-os-api",
|
||||
"name": "@tauri-apps/plugin-os",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user