New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kintone/plugin-packer

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kintone/plugin-packer

Package your kintone plugin with pure JavaScript

  • 8.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
761
increased by44.68%
Maintainers
1
Weekly downloads
 
Created
Source

kintone-plugin-packer

npm version Node.js version License

kintone plugin package.sh in JavaScript

It's written in pure JavaScript, so

  • The CLI works with Node.js in Mac/Windows/Linux
  • The web page works in any modern browsers
  • Validate your manifest.json with JSON Schema

How to install

$ npm install -g @kintone/plugin-packer

Usage: CLI

$ kintone-plugin-packer [OPTIONS] PLUGIN_DIR

Options

  • --ppk PPK_FILE: The path of input private key file. If omitted, it is generated automatically into <Plugin ID>.ppk in the same directory of PLUGIN_DIR or --out if specified.
  • --out PLUGIN_FILE: The path of generated plugin file. The default is plugin.zip in the same directory of PLUGIN_DIR.
  • --watch, -w: Watch PLUGIN_DIR for the changes.

How to use with npm run

If your private key is ./private.ppk and the plugin directory is ./plugin, edit package.json:

{
  "scripts": {
    "package": "kintone-plugin-packer --ppk private.ppk plugin"
  }
}

and then

$ npm run package

Usage: Node.js API

const packer = require("@kintone/plugin-packer");
const fs = require("fs");

const buffer = createContentsZipBufferInYourSelf();
packer(buffer).then((output) => {
  console.log(output.id);
  fs.writeFileSync("./private.ppk", output.privateKey);
  fs.writeFileSync("./plugin.zip", output.plugin);
});

License

MIT License

Keywords

FAQs

Package last updated on 19 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc