Skip to content
Branch: master
Go to file
Code

Latest commit

kyledrake committed d0715c7 May 12, 2017
docs: remove global flag from install section

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

NeoCities Node.js Client Library

A node.js library for interacting with the NeoCities api.

Installation

$ npm install neocities

Usage

First, require the library and initialize:

var NeoCities = require('neocities')
var api = new NeoCities('YOURUSERNAME', 'YOURPASSWORD')

Uploading files to your site

// local file path is ./index.js, saved on site as derp.js

api.upload([
  {name: 'derp.js', path: './index.js'}
], function(resp) {
  console.log(resp)
})

Deleting files from your site

api.delete(['derp.js'], function(resp) {
  console.log(resp)
})

Get site info (hits, et cetera)

api.info(function(resp) {
  console.log(resp)
})
api.info('youpi', function(resp) {
  console.log(resp)
})

About

library for the NeoCities.org API

Resources

You can’t perform that action at this time.