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

blake

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blake - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

8

index.js

@@ -11,6 +11,6 @@

, read = require('./lib/read.js').readItems
, getConf = require('./lib/read.js').conf
, conf = require('./lib/read.js').conf
module.exports = function (s, target) {
var conf = s && target ? getConf(s, target) : s
var c = s && target ? conf(s, target) : s
, decoder = new StringDecoder('utf8')

@@ -21,3 +21,3 @@ , stream = new Transform({ objectMode:true })

var filename = decoder.write(chunk)
read(conf)(filename, function (er, item) {
read(c)(filename, function (er, item) {
bake(item, function (er) {

@@ -34,3 +34,3 @@ stream.push(item.path)

}
item.read = read(conf)
item.read = read(c)
item.bake(item, function (er, result) {

@@ -37,0 +37,0 @@ if (er) {

{
"name": "blake",
"version": "0.9.0",
"version": "0.9.1",
"description": "Simple, blog aware infrastructure to generate static sites",

@@ -34,3 +34,3 @@ "main": "index.js",

"fstream": "0.1.x",
"lru-cache": "2.3.x",
"lru-cache": "2.5.x",
"prettydate": "0.0.x",

@@ -37,0 +37,0 @@ "event-stream": "3.0.x",

# blake - generate site
The `blake` [Node.js](http://nodejs.org/) module provides a simple, blog aware infrastructure to generate [static sites](http://troubled.pro/2012/05/static-websites.html). For unrestricted choice of input formats and template languages, `blake` confines itself to IO and template routing; it delegates artifact generation to user-written functions.
[![Build Status](https://travis-ci.org/michaelnisi/blake.png)](http://travis-ci.org/michaelnisi/blake) [![David DM](https://david-dm.org/michaelnisi/blake.png)](http://david-dm.org/michaelnisi/blake)
## Description
The `blake` [Node.js](http://nodejs.org/) module provides a simple, blog aware infrastructure to generate static sites. For unrestricted choice of input formats and template languages, `blake` confines itself to IO and template routing; it delegates artifact generation to user-written functions.
## CLI Usage

@@ -99,4 +97,6 @@ ```

```
## blake(source, target)
## API
### blake(source, target)
The `blake` module exports a single function that returns a [Transform](http://nodejs.org/api/stream.html#stream_class_stream_transform) stream. While writing source filenames to it, you can read target filenames (of written arfifacts) from it.

@@ -103,0 +103,0 @@

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