Socket
Socket
Sign inDemoInstall

@yuiseki/gyazo

Package Overview
Dependencies
29
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @yuiseki/gyazo

CLI tool and npm package for Gyazo


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@yuiseki/gyazo-cli

Install

If you want to use gyazo as command, install with -g option.

npm i -g @yuiseki/gyazo

Or if you want to use gyazo as npm package in your Node.js project, just install.

npm i @yuiseki/gyazo

Basic Usage as command

You can use gyazo command if you have install with -g option.

The following command:

gyazo /path/to/image.png

will output tmp file path of screenshot to stdout:

https://gyazo.com/xxxxxxxxxxxxxxxxxxxx

Advanced usage

gyazo command supports multiple CLI arguments and stdin.

Try below commands:

echo /path/to/image.png /path/to/image.jpg | xargs gyazo
cat /path/to/image.png | gyazo -i

Basic Usage as package

import path from "path";
import { promises as fs } from "fs";
import { uploadToGyazoDeviceId } from "@yuiseki/gyazo";

const filename = path.basename(filepath);
const fileBuffer = await fs.readFile(filepath);
const gyazoUrl = await uploadToGyazoDeviceId(fileBuffer, filename);
console.log(gyazoUrl);

Development

npm ci
npm run build
npm link
NODE_ENV=development gyazo /path/to/image.png

ToDo

  • Support OAuth authentication and upload.

Keywords

FAQs

Last updated on 10 Jan 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