diamond-middleware
Diamond ======
Last updated 6 years ago by zombiehippie .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install diamond-middleware 
SYNC missed versions from official npm registry.

Diamond

Diamond is a very easy to use middleware & browser plugin combination for file system exploration.

1. Use middleware <super>app.js</super>

app.use('/diamond', require('./lib/diamond')({
  directory: __dirname
}))

2. Include plugin <super>layout.jade</super>

  script(src="/vendors/jquery-2.1.1/jquery-2.1.1.min.js")
  script(src="/diamond/diamond.js")

3. Initialize <super>client-script.js</super>

  demo = new Diamond("#demo")
  demo.onOpenFile = function (path, data) {
    console.log("opened file: ", path)
    console.log("file contents: ", data)
  }

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |