diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 386cee4..4896503 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,7 +1,7 @@ name: CI env: DEBUG: napi:* - APP_NAME: package-template + APP_NAME: x500-native MACOSX_DEPLOYMENT_TARGET: '10.13' 'on': push: diff --git a/README.md b/README.md index 44c65f0..8f399c4 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,13 @@ -# `@napi-rs/package-template` +# NodeJS native add-ons for X.500 directory -![https://github.com/napi-rs/package-template/actions](https://github.com/napi-rs/package-template/workflows/CI/badge.svg) +![https://github.com/Wildboar-Software/x500-native/actions](https://github.com/Wildboar-Software/x500-native/workflows/CI/badge.svg) -> Template project for writing node packages with napi-rs. +This library contains functions for accelerating X.500 directory system agents +(DSAs) and directory user agents (DUAs) written in NodeJS with native add-ons. -# Usage +# Installation -1. Click **Use this template**. -2. **Clone** your project. -3. Run `yarn install` to install dependencies. -4. Run `npx napi rename -n [name]` command under the project folder to rename your package. - -## Install this test package - -``` -yarn add @napi-rs/package-template -``` - -## Support matrix - -### Operating Systems - -| | node14 | node16 | node18 | -| ---------------- | ------ | ------ | ------ | -| Windows x64 | ✓ | ✓ | ✓ | -| Windows x32 | ✓ | ✓ | ✓ | -| Windows arm64 | ✓ | ✓ | ✓ | -| macOS x64 | ✓ | ✓ | ✓ | -| macOS arm64 | ✓ | ✓ | ✓ | -| Linux x64 gnu | ✓ | ✓ | ✓ | -| Linux x64 musl | ✓ | ✓ | ✓ | -| Linux arm gnu | ✓ | ✓ | ✓ | -| Linux arm64 gnu | ✓ | ✓ | ✓ | -| Linux arm64 musl | ✓ | ✓ | ✓ | -| Android arm64 | ✓ | ✓ | ✓ | -| Android armv7 | ✓ | ✓ | ✓ | -| FreeBSD x64 | ✓ | ✓ | ✓ | +1. Run `yarn install` to install dependencies. ## Ability diff --git a/npm/android-arm-eabi/README.md b/npm/android-arm-eabi/README.md index 5f3eba9..72fb8af 100644 --- a/npm/android-arm-eabi/README.md +++ b/npm/android-arm-eabi/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-android-arm-eabi` +# `@wildboar/x500-native-android-arm-eabi` -This is the **armv7-linux-androideabi** binary for `@napi-rs/package-template` +This is the **armv7-linux-androideabi** binary for `@wildboar/x500-native` diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json index 013ab0d..48cacbc 100644 --- a/npm/android-arm-eabi/package.json +++ b/npm/android-arm-eabi/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-android-arm-eabi", + "name": "@wildboar/x500-native-android-arm-eabi", "version": "1.0.0", "os": [ "android" @@ -7,11 +7,11 @@ "cpu": [ "arm" ], - "main": "package-template.android-arm-eabi.node", + "main": "x500-native.android-arm-eabi.node", "files": [ - "package-template.android-arm-eabi.node" + "x500-native.android-arm-eabi.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/android-arm64/README.md b/npm/android-arm64/README.md index 43c27bb..392dd44 100644 --- a/npm/android-arm64/README.md +++ b/npm/android-arm64/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-android-arm64` +# `@wildboar/x500-native-android-arm64` -This is the **aarch64-linux-android** binary for `@napi-rs/package-template` +This is the **aarch64-linux-android** binary for `@wildboar/x500-native` diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index 15fb65f..5a95e17 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-android-arm64", + "name": "@wildboar/x500-native-android-arm64", "version": "1.0.0", "os": [ "android" @@ -7,11 +7,11 @@ "cpu": [ "arm64" ], - "main": "package-template.android-arm64.node", + "main": "x500-native.android-arm64.node", "files": [ - "package-template.android-arm64.node" + "x500-native.android-arm64.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/darwin-arm64/README.md b/npm/darwin-arm64/README.md index c082d2b..0e8b9c2 100644 --- a/npm/darwin-arm64/README.md +++ b/npm/darwin-arm64/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-darwin-arm64` +# `@wildboar/x500-native-darwin-arm64` -This is the **aarch64-apple-darwin** binary for `@napi-rs/package-template` +This is the **aarch64-apple-darwin** binary for `@wildboar/x500-native` diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index f598805..7d6b5fc 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-darwin-arm64", + "name": "@wildboar/x500-native-darwin-arm64", "version": "1.0.0", "os": [ "darwin" @@ -7,11 +7,11 @@ "cpu": [ "arm64" ], - "main": "package-template.darwin-arm64.node", + "main": "x500-native.darwin-arm64.node", "files": [ - "package-template.darwin-arm64.node" + "x500-native.darwin-arm64.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/darwin-x64/README.md b/npm/darwin-x64/README.md index 37fd27e..cf2a291 100644 --- a/npm/darwin-x64/README.md +++ b/npm/darwin-x64/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-darwin-x64` +# `@wildboar/x500-native-darwin-x64` -This is the **x86_64-apple-darwin** binary for `@napi-rs/package-template` +This is the **x86_64-apple-darwin** binary for `@wildboar/x500-native` diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index b3dcdad..7819f15 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-darwin-x64", + "name": "@wildboar/x500-native-darwin-x64", "version": "1.0.0", "os": [ "darwin" @@ -7,11 +7,11 @@ "cpu": [ "x64" ], - "main": "package-template.darwin-x64.node", + "main": "x500-native.darwin-x64.node", "files": [ - "package-template.darwin-x64.node" + "x500-native.darwin-x64.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/freebsd-x64/README.md b/npm/freebsd-x64/README.md index 1ea628b..e859a5a 100644 --- a/npm/freebsd-x64/README.md +++ b/npm/freebsd-x64/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-freebsd-x64` +# `@wildboar/x500-native-freebsd-x64` -This is the **x86_64-unknown-freebsd** binary for `@napi-rs/package-template` +This is the **x86_64-unknown-freebsd** binary for `@wildboar/x500-native` diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index e0eb3e5..94e5502 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-freebsd-x64", + "name": "@wildboar/x500-native-freebsd-x64", "version": "1.0.0", "os": [ "freebsd" @@ -7,11 +7,11 @@ "cpu": [ "x64" ], - "main": "package-template.freebsd-x64.node", + "main": "x500-native.freebsd-x64.node", "files": [ - "package-template.freebsd-x64.node" + "x500-native.freebsd-x64.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/linux-arm-gnueabihf/README.md b/npm/linux-arm-gnueabihf/README.md index 655eae9..30fb2ad 100644 --- a/npm/linux-arm-gnueabihf/README.md +++ b/npm/linux-arm-gnueabihf/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-linux-arm-gnueabihf` +# `@wildboar/x500-native-linux-arm-gnueabihf` -This is the **armv7-unknown-linux-gnueabihf** binary for `@napi-rs/package-template` +This is the **armv7-unknown-linux-gnueabihf** binary for `@wildboar/x500-native` diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index d13ece8..0a22e0b 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-linux-arm-gnueabihf", + "name": "@wildboar/x500-native-linux-arm-gnueabihf", "version": "1.0.0", "os": [ "linux" @@ -7,11 +7,11 @@ "cpu": [ "arm" ], - "main": "package-template.linux-arm-gnueabihf.node", + "main": "x500-native.linux-arm-gnueabihf.node", "files": [ - "package-template.linux-arm-gnueabihf.node" + "x500-native.linux-arm-gnueabihf.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/linux-arm64-gnu/README.md b/npm/linux-arm64-gnu/README.md index 2601bff..70ca345 100644 --- a/npm/linux-arm64-gnu/README.md +++ b/npm/linux-arm64-gnu/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-linux-arm64-gnu` +# `@wildboar/x500-native-linux-arm64-gnu` -This is the **aarch64-unknown-linux-gnu** binary for `@napi-rs/package-template` +This is the **aarch64-unknown-linux-gnu** binary for `@wildboar/x500-native` diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 0b596d8..0c10f32 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-linux-arm64-gnu", + "name": "@wildboar/x500-native-linux-arm64-gnu", "version": "1.0.0", "os": [ "linux" @@ -7,14 +7,11 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], - "main": "package-template.linux-arm64-gnu.node", + "main": "x500-native.linux-arm64-gnu.node", "files": [ - "package-template.linux-arm64-gnu.node" + "x500-native.linux-arm64-gnu.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -31,5 +28,8 @@ "registry": "https://registry.npmjs.org/", "access": "public" }, - "repository": "git@github.com:napi-rs/package-template.git" -} + "repository": "git@github.com:napi-rs/package-template.git", + "libc": [ + "glibc" + ] +} \ No newline at end of file diff --git a/npm/linux-arm64-musl/README.md b/npm/linux-arm64-musl/README.md index 63c719f..e4001ee 100644 --- a/npm/linux-arm64-musl/README.md +++ b/npm/linux-arm64-musl/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-linux-arm64-musl` +# `@wildboar/x500-native-linux-arm64-musl` -This is the **aarch64-unknown-linux-musl** binary for `@napi-rs/package-template` +This is the **aarch64-unknown-linux-musl** binary for `@wildboar/x500-native` diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index 5ef453d..f4a462c 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-linux-arm64-musl", + "name": "@wildboar/x500-native-linux-arm64-musl", "version": "1.0.0", "os": [ "linux" @@ -7,14 +7,11 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], - "main": "package-template.linux-arm64-musl.node", + "main": "x500-native.linux-arm64-musl.node", "files": [ - "package-template.linux-arm64-musl.node" + "x500-native.linux-arm64-musl.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -31,5 +28,8 @@ "registry": "https://registry.npmjs.org/", "access": "public" }, - "repository": "git@github.com:napi-rs/package-template.git" -} + "repository": "git@github.com:napi-rs/package-template.git", + "libc": [ + "musl" + ] +} \ No newline at end of file diff --git a/npm/linux-x64-gnu/README.md b/npm/linux-x64-gnu/README.md index 42d28b1..ffa07a8 100644 --- a/npm/linux-x64-gnu/README.md +++ b/npm/linux-x64-gnu/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-linux-x64-gnu` +# `@wildboar/x500-native-linux-x64-gnu` -This is the **x86_64-unknown-linux-gnu** binary for `@napi-rs/package-template` +This is the **x86_64-unknown-linux-gnu** binary for `@wildboar/x500-native` diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index a01c26b..8ab4d0b 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-linux-x64-gnu", + "name": "@wildboar/x500-native-linux-x64-gnu", "version": "1.0.0", "os": [ "linux" @@ -7,14 +7,11 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], - "main": "package-template.linux-x64-gnu.node", + "main": "x500-native.linux-x64-gnu.node", "files": [ - "package-template.linux-x64-gnu.node" + "x500-native.linux-x64-gnu.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -31,5 +28,8 @@ "registry": "https://registry.npmjs.org/", "access": "public" }, - "repository": "git@github.com:napi-rs/package-template.git" -} + "repository": "git@github.com:napi-rs/package-template.git", + "libc": [ + "glibc" + ] +} \ No newline at end of file diff --git a/npm/linux-x64-musl/README.md b/npm/linux-x64-musl/README.md index 10c2913..4945f6d 100644 --- a/npm/linux-x64-musl/README.md +++ b/npm/linux-x64-musl/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-linux-x64-musl` +# `@wildboar/x500-native-linux-x64-musl` -This is the **x86_64-unknown-linux-musl** binary for `@napi-rs/package-template` +This is the **x86_64-unknown-linux-musl** binary for `@wildboar/x500-native` diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index bf63549..9374191 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-linux-x64-musl", + "name": "@wildboar/x500-native-linux-x64-musl", "version": "1.0.0", "os": [ "linux" @@ -7,14 +7,11 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], - "main": "package-template.linux-x64-musl.node", + "main": "x500-native.linux-x64-musl.node", "files": [ - "package-template.linux-x64-musl.node" + "x500-native.linux-x64-musl.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -31,5 +28,8 @@ "registry": "https://registry.npmjs.org/", "access": "public" }, - "repository": "git@github.com:napi-rs/package-template.git" -} + "repository": "git@github.com:napi-rs/package-template.git", + "libc": [ + "musl" + ] +} \ No newline at end of file diff --git a/npm/win32-arm64-msvc/README.md b/npm/win32-arm64-msvc/README.md index a9bc937..0fef3a9 100644 --- a/npm/win32-arm64-msvc/README.md +++ b/npm/win32-arm64-msvc/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-win32-arm64-msvc` +# `@wildboar/x500-native-win32-arm64-msvc` -This is the **aarch64-pc-windows-msvc** binary for `@napi-rs/package-template` +This is the **aarch64-pc-windows-msvc** binary for `@wildboar/x500-native` diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index 978b0fa..b468972 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-win32-arm64-msvc", + "name": "@wildboar/x500-native-win32-arm64-msvc", "version": "1.0.0", "os": [ "win32" @@ -7,11 +7,11 @@ "cpu": [ "arm64" ], - "main": "package-template.win32-arm64-msvc.node", + "main": "x500-native.win32-arm64-msvc.node", "files": [ - "package-template.win32-arm64-msvc.node" + "x500-native.win32-arm64-msvc.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/win32-ia32-msvc/README.md b/npm/win32-ia32-msvc/README.md index 1c0e7a3..0788e39 100644 --- a/npm/win32-ia32-msvc/README.md +++ b/npm/win32-ia32-msvc/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-win32-ia32-msvc` +# `@wildboar/x500-native-win32-ia32-msvc` -This is the **i686-pc-windows-msvc** binary for `@napi-rs/package-template` +This is the **i686-pc-windows-msvc** binary for `@wildboar/x500-native` diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index 70d1812..cc6be6b 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-win32-ia32-msvc", + "name": "@wildboar/x500-native-win32-ia32-msvc", "version": "1.0.0", "os": [ "win32" @@ -7,11 +7,11 @@ "cpu": [ "ia32" ], - "main": "package-template.win32-ia32-msvc.node", + "main": "x500-native.win32-ia32-msvc.node", "files": [ - "package-template.win32-ia32-msvc.node" + "x500-native.win32-ia32-msvc.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/npm/win32-x64-msvc/README.md b/npm/win32-x64-msvc/README.md index 1acad6c..bffc77a 100644 --- a/npm/win32-x64-msvc/README.md +++ b/npm/win32-x64-msvc/README.md @@ -1,3 +1,3 @@ -# `@napi-rs/package-template-win32-x64-msvc` +# `@wildboar/x500-native-win32-x64-msvc` -This is the **x86_64-pc-windows-msvc** binary for `@napi-rs/package-template` +This is the **x86_64-pc-windows-msvc** binary for `@wildboar/x500-native` diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index 593b1d8..d14ffe7 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,5 +1,5 @@ { - "name": "@napi-rs/package-template-win32-x64-msvc", + "name": "@wildboar/x500-native-win32-x64-msvc", "version": "1.0.0", "os": [ "win32" @@ -7,11 +7,11 @@ "cpu": [ "x64" ], - "main": "package-template.win32-x64-msvc.node", + "main": "x500-native.win32-x64-msvc.node", "files": [ - "package-template.win32-x64-msvc.node" + "x500-native.win32-x64-msvc.node" ], - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "keywords": [ "napi-rs", "NAPI", @@ -29,4 +29,4 @@ "access": "public" }, "repository": "git@github.com:napi-rs/package-template.git" -} +} \ No newline at end of file diff --git a/package.json b/package.json index 8a16b2e..bf4425a 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "@napi-rs/package-template", + "name": "@wildboar/x500-native", "version": "1.0.0", - "description": "Template project for writing node package with napi-rs", + "description": "NodeJS native add-ons for X.500 directory usage", "main": "index.js", - "repository": "git@github.com:napi-rs/package-template.git", + "repository": "https://github.com/Wildboar-Software/x500-native.git", "license": "MIT", "keywords": [ "napi-rs", @@ -18,7 +18,7 @@ "index.js" ], "napi": { - "name": "package-template", + "name": "x500-native", "triples": { "defaults": true, "additional": [