# node-codesign

> Sign your apps on OSX.

Latest version **0.3.3** (published 2021-10-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install node-codesign
pnpm add node-codesign
yarn add node-codesign
bun add node-codesign
```

Provides the command `node-codesign`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2021-10-20 |
| First published | 2020-10-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Lucas Hrabovsky |
| Maintainers | chuck.kalmanek, mongodb-js-user, rueckstiess, durran, lerouxb, fredtruman, mbroadst, hswolff, satyasinha, matt_d_rat, rhysm, tomhollander, alena.khineika, jeff-allen-mongo, mmarcon, jonathan.balsano, mongodb-build, jack.weir, stennie, brookescarlett, mcasimir, kristina.stefano, jarjee, shaketbaby, devtoolsbot, addaleax, rosem, gribnoysup, mutukrish |
| Keywords | mongodb.js, electron, electron-installer, gulpfriendly, codesign |

## Links

- npm: https://www.npmjs.com/package/node-codesign
- Repository: https://github.com/mongodb-js/node-codesign
- Homepage: http://github.com/mongodb-js/node-codesign
- Issues: https://github.com/mongodb-js/node-codesign/issues
- npm.io page: https://npm.io/package/node-codesign

## Dependencies (7)

- [del](https://npm.io/package/del.md) ^2.1.0
- [glob](https://npm.io/package/glob.md) ^7.1.1
- [async](https://npm.io/package/async.md) ^2.1.2
- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [figures](https://npm.io/package/figures.md) ^2.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.3.3 (latest) — 2021-10-20
- 0.3.2 — 2020-10-26
- 0.3.1 — 2020-10-08
- 0.3.0 — 2020-10-06

## README

# node codesign

> Sign anything for MacOS.

## Installation

```
# For use in npm scripts
npm i node-codesign --save-dev

# For use from cli
npm i node-codesign -g
```

## Usage

To obtain a signing identity, join the [Mac Developer Program][mac-dev].
More info is available in the [Mac Developer documentation][codesign-intro].

```
Usage: node-codesign <path/to/file> <Identity>

Sign your electron apps on OSX.

Usage:
  node-codesign ./FooBar-darwin-x64/FooBar.app "Developer ID Application: Lucas Hrabovsky"

Args:
  <appPath>            Path to your file.
  <identity>           Keychain query of a Code Signing Identity obtained from Apple.

Options:
  --debug              Enable debug messages.
  --overwrite          Overwrite any existing DMG.
  -h --help            Show this screen.
  --version            Show version.
```

### API

```javascript
var codesign = require('node-codesign')
codesign(opts, function done (err, filePaths) { })
```
#### codesign(opts, callback)

##### opts
**Required**
`appPath` - *String*
The file.

`identity` - *String*
SHA-1 signature or query (e.g. `Developer ID Application <your_name>`) of a Code Signing Identity obtained from Apple.

##### callback

`err` - *Error*
Contains errors if any.

`filePaths` *Array*
Path successfully signed and verified.

## License

Apache 2.0

[npm_img]: https://img.shields.io/npm/v/node-codesign.svg
[npm_url]: https://npmjs.org/package/node-codesign
[electron-packager]: https://github.com/maxogden/electron-packager
[obtain-signing-identity]: https://developer.apple.com/library/prerelease/ios/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-SW1
[mac-dev]: https://developer.apple.com/programs/
[codesign-guide]: http://helpnet.flexerasoftware.com/installanywhere2012/Content/helplibrary/SigningMacOSX.htm
[codesign-intro]: https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html

---
_Source: https://npm.io/package/node-codesign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
