Bret Comnes fc9f4dc3ad
bumps
2020-02-10 13:51:34 -07:00
..
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 13:51:34 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 13:51:34 -07:00
2020-02-10 12:50:13 -07:00
2020-02-10 12:50:13 -07:00

async-neocities

Actions Status

WIP - nothing to see here

npm install async-neocities

Usage

const path = require('path')
const Neocities = require('async-neocities')

async function deploySite () {
  const token = await Neocities.getKey('sitename', 'password')

  const client = new Neocities(token)

  console.log(await client.list()) // site files
  console.log(await client.info()) // site info

  return client.deploy(path.join(__dirname, './site-contents'))
}

deploySite.then(info => { console.log('done deploying site!') })
  .catch(e => { throw e })

License

MIT