mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-17 06:56:30 +00:00
34 lines
729 B
Markdown
34 lines
729 B
Markdown
# async-neocities
|
|
[](https://github.com/bcomnes/async-neocities/actions)
|
|
|
|
WIP - nothing to see here
|
|
|
|
```
|
|
npm install async-neocities
|
|
```
|
|
|
|
## Usage
|
|
|
|
``` js
|
|
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
|