1.0.0-b • Published 11 months ago
n-actjs v1.0.0-b
Act.js
Modern Act didn't go as well as I thought, and I was very disappointed, so I made a new one.
An improvement
(not yet) The original Modern Act was if xml was parsed to js, Act.js uses js and xml together.
The existing Modern Act used the express module, but Act.js implemented the server directly using the http module.
Overall, the serious security concerns of the Modern Act have been improved.
Usage
Package act.js already exists and has been replaced with n-actjs
import Act from 'n-actjs';
const doc = {
route: `/home`,
method: `get`,
header: { "Content-Type": "text/html" },
body: Act.createElement(`embed`, {},
Act.createElement(`title`, {}, `Examples`),
Act.createElement(`div`, {},
Act.createElement(`h1`, {}, `Hello, world!`)
),
)
};
export default doc;
1.0.0-b
11 months ago