![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Lightweight web framework for node.js
General usage
var Crixalis = require('crixalis');
Crixalis
/* Load plugins */
.plugin('shortcuts')
.plugin('access', { format: '%7T %-4m %s %9B %-15h %U%q' })
/* Add route with placeholder */
.get('/hello/:name', function () {
/* Prepare data for response */
this.stash.json = {
message: 'Hello, ' + this.params.name + '!'
};
/* Render response */
this.render();
})
/* Add another route for GET and HEAD methods */
.route('/info', { methods: ['GET', 'HEAD'] }, function () {
var that = this;
require('fs').readFile('./readme.md', function (error, result) {
if (error) {
/* Handle error */
that.error(error);
} else {
that.body = result;
that.render();
}
});
})
/* Catch everything else */
.route('*', function () {
this.redirect('/hello/World');
})
/* Start server on port 8080 */
.start('http', 8080);
Available core plugins
access
Access log (with configurable CLF support)compression
Compress response using gzip
or deflate
compression (also works with static
plugin)request
Thin wrapper around http.request
and https.request
shortcuts
Route declaration helpers, .get()
, .post()
, etc.static
Serve static filesCrixalis comes with script for serving static files
# Start web server on port `8080` and serve files from current folder
crixalis
# Start web server on port `3000` and serve files from `~/www/`
crixalis --port 3000 --path ~/www/
Copyright 2012-2016 Alexander Nazarov. All rights reserved.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
1.0.0
Released 2016-10-05
.define()
no longer needs definition type.define()
can declare views and features.define()
can not attach event listeners anymore.has()
can be used to test for implemented features.route()
*
support for routesauto
view.router()
.async
flag._routes
, ._patterns
and ._views
.is_get()
and others.chain()
.view
property and all views except auto
._response()
to .sendResponse()
._destroy()
to .destroyContext()
._handler()
to .createContext()
Context.start
to Context.stamp
(conflict with .start()
):placeholder
RegExp to not accept dotsfeature::compression
when loadedfeature::static
when loaded.any()
methodFAQs
Lightweight web framework
The npm package crixalis receives a total of 29 weekly downloads. As such, crixalis popularity was classified as not popular.
We found that crixalis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.