JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q19012F
  • License MIT

Minimalist, fast, simple web framework based on ExpressJS for node.

Package Exports

  • kieryjs
  • kieryjs/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kieryjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

LOGO

Minimalist, fast, simple web framework based on ExpressJS for node.

  • npm version
  • npm download
  • install size
const kieryjs = require('./index');

// create the server
kieryjs.createServer({
    index: 'index.ejs', 
    engine: 'ejs',// render the file in "views/index.ejs"
    includeVariableOnPage: true,
    varPage: { HelloWorld: "Hello, World!" }, // Add a variable called "HelloWorld" with the value "Hello, World!"
    port: 8080, // at port 3000 (http://localhost:3000)
    staticFolder: 'public' // set static folder (css, js, img) to "public"
});

// create your first page
kieryjs.createPage({
    renderFile: 'second.ejs',
    path: 'second',
    includeVariableOnPage: true,
    varPage: { hello: "helloworld" }
})

Installation

KieryJS is available on nodejs, before installing, download and install Node.js. For add KieryJS on your project, doing this command:

$ npm install kieryjs