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

parse-pan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-pan

get wangpan download url/name/size

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Install

$ npm install parse-pan

Usage

var pan = require('parse-pan');

pan.getInfo(url,callback);
//=> http://pan.baidu.com/s/1mgpbW6G

//  { name: 'vc11_x86.exe',
//  size: '6.25MB',
//  download: 'http://d.pcs.baidu.com/file/99313a6c90f7990a74fee3f588506b08?fid=3208056152-250528-858631772474293&time=1452223894&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-ZtOaBxFIcfUre42R5seyjxwK3E0%3D&rt=sh&expires=8h&r=830062561&sharesign=za9HLZDemAGPljLbkq3pLcl/67DLXKEv5e45PFYC091twnHOx7UHOrFGk8twV2EMbXsJrLdnKQ0bVfrJ7MzYHkqwmgmWqNpKYsftT+wca7hyRqpArDBlDAHHT0++7sYx3oX09WNkrHaGKUgwbb4WJ2toJwcvwkcjdkvMkddlLs/a3echpztRzfafXwggceAJXt3AZwr/EjOP33vWkpqj9AAuQPFb4kkLIagf7X6xM4Avy4n4gclBucySNx3kYxc0+ZRLjmNiTAUXHvw2ziqC6QxCua4ZldpmntemLTp4MxZugznZoZIYw5pDuqHlQDnoyn4qDo+52khU7UoxH5VPzCwxs8UU5XqfIVfc6xysJci9TEp/4eG0Xzb/VduqtDv3tx81pGf9eAeAngBImB3ypec0jeCJVRR/TWwD8nbxU9frFNhZuYXfYkBnFN6nQoHQH3uteKNAVAH5B+rV379vN74AWZFml1scL0nPg2EtwdfymKbN5dXjClx87gXUrnvstAMadHTAsi4=&sh=1'}

API

.getDownload()

Type: string

Get download url.

.getSize()

Type: string

Get file size.

.getName()

Type: string

Get file name.

.getInfo()

Type: function

Get all info.

CLI

$ npm install --g parse-pan
$ parse-pan --help

  Usage: parse-pan [options]

  Options:

    -h, --help      output usage information
    -V, --version   output the version number
    -n, --file      Get resource name
    -s, --size      Get resource size
    -d, --download  Get resource download url

Keywords

FAQs

Package last updated on 08 Jan 2016

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