Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bonnie

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bonnie

Bonnie ============= __Alpha!__

  • 0.0.1-beta
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Bonnie

Alpha!

What is Bonnie?

To put it simply: Bonnie is a middleware to be used with express to create static blogs and/or pages. Bonnie comes with a generator to easily generate Bonnie projects and to manage your page. Think of the CLI as the alternative to a bloated administrative interface.

Installation

Begin by installing Bonnie globally.

$ npm install -g bonnie 

This will give you access to the bonnie executable. Now scaffold a bonnie project

$ bonnie new myblog cd && myblog && npm install

This will create the directory structure for your blog and install all its dependencies. You are now ready to start your server.

To keep Bonnie from becoming bloated and hard to extend, Bonnie generates a server file and this is what you run to start the server.

$ node index.js

Creating blog posts

Blog posts are per default located in the _posts directory. The filename of a blog post follows a specific format [YYYY-MM-DD]_["MyPostTitle"].md. This is becuase Bonnie uses the date as the published date for the post. To make the process of creating posts easier the CLI provides a generator.

$ bonnie post --title "MyPost"

options

--title: Title is required and will be the title of your blog post. Obviously you can just rename the file if you want to change the title.

--draft: Will generate it into the draft directory rather than posts.

--date [YYYY-MM-DD]: Overrides the default date which is the current date.

FAQs

Package last updated on 06 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc