Socket
Socket
Sign inDemoInstall

bonnie

Package Overview
Dependencies
106
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bonnie

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


Version published
Maintainers
1
Install size
10.5 MB
Created

Readme

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

Last updated on 06 Oct 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc