https://github.com/kami4ka/signcheck
Check specified path sign with native current OS signing tools (macOS, Windows) using NodeJS
https://github.com/kami4ka/signcheck
check macos nodejs npm npm-package os-signing path-sign signature
Last synced: 3 months ago
JSON representation
Check specified path sign with native current OS signing tools (macOS, Windows) using NodeJS
- Host: GitHub
- URL: https://github.com/kami4ka/signcheck
- Owner: kami4ka
- Created: 2017-03-23T12:01:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T12:50:16.000Z (about 8 years ago)
- Last Synced: 2025-09-21T22:29:32.706Z (9 months ago)
- Topics: check, macos, nodejs, npm, npm-package, os-signing, path-sign, signature
- Language: JavaScript
- Homepage: https://kami4ka.github.io/SignCheck/
- Size: 53.7 KB
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SignCheck
[](https://www.npmjs.com/package/sign-check)
[](https://travis-ci.org/kami4ka/SignCheck)
[](https://www.npmjs.com/package/sign-check)
Check specified path sign with native current OS signing tools
## Usage
Get the package via NPM: `npm install sign-check`.
```js
const SignCheck = require('sign-check');
const somePath = 'some/path/for/test';
SignCheck.check(somePath).then(
(isSigned) => {
console.log('File sign status ' + isSigned);
},
(error) => {
console.log(error);
}
);
```
or use sync version:
```js
try {
const isSigned = SignCheck.checkSync(somePath);
console.log('File is signed: ', isSigned);
} catch (err) {
console.log('Something went wrong');
}
```
## Usage as CLI tool
Install the package globally: `npm install -g sign-check`.
```sh
sign-check 'path/to/file'
```
## Notes
For Win verification used [sample](https://msdn.microsoft.com/en-us/library/aa382384(VS.85).aspx) code compiled to binary.
For detailed info about Windows tool error codes see: `lib/bin/README.md`
For detailed info about macOS tool see [official doc](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/codesign.1.html)