Socket
Socket
Sign inDemoInstall

clipgen

Package Overview
Dependencies
14
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    clipgen

A webclip and adhoc generator.


Version published
Weekly downloads
1
Maintainers
1
Install size
8.49 MB
Created
Weekly downloads
 

Readme

Source

Clipgen

A web clip and adhoc config generator.

Installation

$ yarn add clipgen

Usage

For webclips:

import { Config } from 'clipgen';

const config = await Config.render({
	type: 'web',
	name: "S0n1c's Site",
	author: 'S0n1c',
	desc: 'A test webclip',
	clips: [
		{
			name: 'S0n1c',
			url: 'https://s0n1c.ca',
			icon: new URL('https://s0n1c.ca/me.png'), // or an ArrayBufferLike
		},
	],
	signing: {
		// Optional, only available using Node.js
		cert: '-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----',
		key: '-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----',
	},
});

console.log(config); // outputs the generated config as an ArrayBuffer

For adhoc configs:

import { Config } from 'clipgen';

let config = await Config.render({
	type: 'adhoc',
	items: [
		{
			name: 'App Name',
			url: 'https://example.com/App.ipa',
			icon: 'https://example.com/AppIcon.png',
			identifier: 'com.example.app',
		},
	],
});

console.log(config); // outputs the generated config as an ArrayBuffer

Keywords

FAQs

Last updated on 22 Dec 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc