@internetfriendsforever/depot
Command line utility for iff-depot
Last updated 2 years ago by sgk .
ISC · Original npm · Tarball · package.json
$ cnpm install @internetfriendsforever/depot 
SYNC missed versions from official npm registry.

Node.js usage:

const createDepot = require('iff-depot-cli')

const token = 'sanity token'
const depot = createDepot(token)

const files = [
  {
    type: 'image',
    path: 'images',
    filename: '1.jpg',
    body: new Buffer()
  }
]

depot.snapshot(files, {
  onProgress (progress) {
    console.log(progress)
  },

  onComplete (result) {
    console.log(result)
  },

  onError (error) {
    console.error(error)
  }
})

Current Tags

  • 0.0.6                                ...           latest (2 years ago)

1 Versions

  • 0.0.6                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 3
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |