npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lsdl-wrapper

v1.0.7

Published

Node wrapper around line-sticker-downloder.

Downloads

75

Readme

lsdl-wrapper

License: MIT npm version Npm Publish Maintainability codecov
Node wrapper around line-sticker-downloder.

🛠 Usage

import * as lsdl from 'lsdl-wrapper';

const sticker: Promise<void> = lsdl("7457240");
sticker.then(() => {
    // Behavior when successful
    // The file is saved in the current directory
});

lsdl.async("7457240", "downloads");
// The file is saved in the downloads directory

const options: { [key: string]: boolean } = {
    animation: true,
    gif: true,
    sound: true
};
lsdl("11978", "downloads", options);
// or: lsdl("11978", "", options);
// or: lsdl("11978", null, options);
// or: lsdl("https://store.line.me/stickershop/product/11978/ja", "downloads", options);
// or: lsdl.async("11978", "downloads", options);

⚙ Example

📄 example.ts

import * as lsdl from 'lsdl-wrapper';

const ID_or_URL = "7457240"; // https://store.line.me/stickershop/product/7457240/ja
const dir = "downloads";
const sticker: Promise<void> = lsdl(ID_or_URL, dir);
sticker.then((): void => {
    console.log('OK!');
});

🖥 On Terminal

$ ts-node example.ts
OK!
$ tree downloads
downloads
└── Akatsuki_UNI_sticker_#1
    ├── @2x_key_png
    │   ├── 180117102@2x_key.png
    │   ├── 180117103@2x_key.png
    │   ├── 180117104@2x_key.png
    │   ├── 180117106@2x_key.png
    │   ├── 180117108@2x_key.png
    │   ├── 180117110@2x_key.png
    │   ├── 180117112@2x_key.png
    │   ├── 180117114@2x_key.png
    │   ├── 180117116@2x_key.png
    │   ├── 180117118@2x_key.png
    │   ├── 180117120@2x_key.png
    │   ├── 180117122@2x_key.png
    │   ├── 180117124@2x_key.png
    │   ├── 180117126@2x_key.png
    │   ├── 180117128@2x_key.png
    │   ├── 180117129@2x_key.png
    │   ├── 180117130@2x_key.png
    │   ├── 180117131@2x_key.png
    │   ├── 180117133@2x_key.png
    │   ├── 180117134@2x_key.png
    │   ├── 180117135@2x_key.png
    │   ├── 180117136@2x_key.png
    │   ├── 180117137@2x_key.png
    │   └── 180117142@2x_key.png
    ├── @2x_png
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   ├── [email protected]
    │   └── [email protected]
    ├── key_png
    │   ├── 180117102_key.png
    │   ├── 180117103_key.png
    │   ├── 180117104_key.png
    │   ├── 180117106_key.png
    │   ├── 180117108_key.png
    │   ├── 180117110_key.png
    │   ├── 180117112_key.png
    │   ├── 180117114_key.png
    │   ├── 180117116_key.png
    │   ├── 180117118_key.png
    │   ├── 180117120_key.png
    │   ├── 180117122_key.png
    │   ├── 180117124_key.png
    │   ├── 180117126_key.png
    │   ├── 180117128_key.png
    │   ├── 180117129_key.png
    │   ├── 180117130_key.png
    │   ├── 180117131_key.png
    │   ├── 180117133_key.png
    │   ├── 180117134_key.png
    │   ├── 180117135_key.png
    │   ├── 180117136_key.png
    │   ├── 180117137_key.png
    │   └── 180117142_key.png
    └── png
        ├── 180117102.png
        ├── 180117103.png
        ├── 180117104.png
        ├── 180117106.png
        ├── 180117108.png
        ├── 180117110.png
        ├── 180117112.png
        ├── 180117114.png
        ├── 180117116.png
        ├── 180117118.png
        ├── 180117120.png
        ├── 180117122.png
        ├── 180117124.png
        ├── 180117126.png
        ├── 180117128.png
        ├── 180117129.png
        ├── 180117130.png
        ├── 180117131.png
        ├── 180117133.png
        ├── 180117134.png
        ├── 180117135.png
        ├── 180117136.png
        ├── 180117137.png
        └── 180117142.png

5 directories, 96 files

🔗 API

lsdl(sticker: string, out_path?: string, options?: {[key: string]: boolean}): Promise<void>

Write the sticker data from the sticker to out_path. Returns a Promise which is resolved when out_path exists.
If out_path is omitted, it defaults to current directory.
You can specify not only a sticker ID but also a URL for the sticker.

options

  • animation: Save the animation stickers as APNG.
  • effect: Save the effect stickers as APNG.
  • gif: Convert animation stickers or effect stickers to GIF and save.
  • sound: Save sticker sounds with sound in m4a.
  • custom: Custom sticker download Only. (Cannot be used with any other option)
  • manga: Manga sticker download Only. (Cannot be used with any other option)

All options values ​​are set with boolean.

lsdl.async(sticker: string, out_path?: string, options?: {[key: string]: boolean}): undefined

Writes sticker data from sticker to out_path synchronously.
If out_path is omitted, it defaults to current directory.
You can specify not only a sticker ID but also a URL for the sticker.

options

  • animation: Save the animation stickers as APNG.
  • effect: Save the effect stickers as APNG.
  • gif: Convert animation stickers or effect stickers to GIF and save.
  • sound: Save sticker sounds with sound in m4a.
  • custom: Custom sticker download Only. (Cannot be used with any other option)
  • manga: Manga sticker download Only. (Cannot be used with any other option)

All options values ​​are set with boolean.

🥝 Lisence

MIT