Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linkedin-post-share

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkedin-post-share - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

package.json
{
"name": "linkedin-post-share",
"version": "1.1.8",
"version": "1.1.9",
"description": "A Linkedin Wrapper for Post/Share API. This will help you to post content on linkedin.",

@@ -5,0 +5,0 @@ "repository": {

@@ -24,4 +24,4 @@ # LinkedIn Post Share

const post = "This is my post content";
// Blob object representing the image
const image = await fetch("https://example.com/some-image.jpeg").then((response) => response.blob()); ;
// Buffer representing the image
const image = await fetch("https://example.com/some-image.jpeg").then((response) => response.buffer()); ;
const imageAlt = "Alternative text for the image";

@@ -43,7 +43,7 @@

- `createPostWithImage(post: string, image: Blob, imageAlt?: string): Promise<boolean>`
- `createPostWithImage(post: string, image: Buffer, imageAlt?: string): Promise<boolean>`
Creates a post on LinkedIn with an image. Returns a Promise that resolves to true if the post was shared successfully, or false otherwise.
- post - The text of the post.
- image - A Blob object representing the image to be shared.
- image - A Buffer.
- imageAlt - Optional alternative text for the image. If not provided, a default value will be used.

@@ -50,0 +50,0 @@

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