npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

confluence-site

v4.0.1

Published

A Command Line Interface (CLI) for publish your site directly to confluence

Downloads

7

Readme

npm        example workflow

 __   __        ___            ___       __   ___     __    ___  ___ 
/  ` /  \ |\ | |__  |    |  | |__  |\ | /  ` |__     /__` |  |  |__  
\__, \__/ | \| |    |___ \__/ |___ | \| \__, |___    .__/ |  |  |___ 

Description

A CLI (Command Line Interface) for publish your site directly to confluence allowing to keep in-sync local and remote documentation

This project should be considered as NodeJS version of the confluence maven plugin developed using reactive javascript extension

The Site is described using a XML or YAML Site descriptor that is compatible with the one used by confluence maven plugin

Supported Formats

format | usage note | ---- | ---- | Confluence wiki | use .wiki or .confluence extension | Markdown (throught package marked) | use .md extension |

Notes

From version 2.x both rest and xmlrpc protocols are supported

Install

npm install confluence-site -g

Usage

Usage: confluence-site 

init --serverid <serverid>      // create/update configuration

deploy [--config]               // deploy site to confluence

delete                          // delete site

download --pageid <pageid> [--file] [--wiki] // download page content

info                            // show configuration

Options:

 --serverid     // it is the credentials' profile.
 --config       // force reconfiguration.
 --pageid       // the page identifier.
 --file         // the output file name.
 --wiki         // indicate deprecated wiki content format

Commands

init

Initilaize (create/update) the configuration. The configuration is stored into file ./config.json

key | description | ---- | ---- | serverId | It is the credentials' profile. Provided from command line option --serverid | protocol | http\|https. This information is deducted from url| host | host name or ip address. This information is deducted from url| port | port number. This information is deducted from url| path | url path. This information is deducted from url| spaceId | Confluence target space identifier | parentPageTitle | Confluence container page| sitePath | Path where the site descriptor is located. By default is ./site.xml|

Credentials are stored into a separate crypted file (see preferences) indentified by serverId

deploy

Deploy pages defined into site descriptor directly in confluence

delete

Delete pages tree startig from home defined into site descriptor

download

download page content

param | description | mandatory ---- | ---- | ---- | pageid | page identifier | yes file | output file name (default pageid) | no wiki | require the content in old wiki format. Default is storage format | no

info

Show current configuration

Example

site path:		          site.xml
confluence url:		      http://localhost:8080/
confluence space id:	  MySpace
confluence parent page:	Home
serverid:		            test
confluence username:	  admin
confluence password:	  *****

Developer usage

For any contributions, you can fork the source cli dev branch and create a Pull Request in order to include your improvements. After cloning in your machine, as a common npm package, you have to run:

npm install

The development is in the ts folder. So to transpile files in watching type:

npm start

To only build:

npm run build

The output will be in dist folder.

to execute test:

npm test

To publish on npm registry you have to create an npm account

After this, you can execute:

npm publish