mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 08:51:54 +00:00
Update deps
This commit is contained in:
33
node_modules/async-neocities/README.md
generated
vendored
Normal file
33
node_modules/async-neocities/README.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user