{"_id":"n-actjs","name":"n-actjs","dist-tags":{"latest":"1.0.0-b"},"versions":{"1.0.0-b":{"name":"n-actjs","version":"1.0.0-b","description":"[Modern Act](https://github.com/ICe1BotMaker/modern-act) didn't go as well as I thought, and I was very disappointed, so I made a new one.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","type":"module","dependencies":{"chalk":"^5.2.0","http":"^0.0.1-security"},"gitHead":"680c9084c57545810e8eada0e307096e60d5742d","_id":"n-actjs@1.0.0-b","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-PHQP3r4uiw2dTKzZ+6gD5lSY09swccuG8+9IcTM/jTaKvXTB9xtgs341mkRKxMY+Su08uuGwkZjd0g2GXEwjlg==","shasum":"908c794cfbe65c85bd0235bb8ded62f5bfd82e2c","tarball":"https://registry.npmjs.org/n-actjs/-/n-actjs-1.0.0-b.tgz","fileCount":9,"unpackedSize":9406,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4UG/rbk6AFcQvWbkf7Dnd4TpzP93ueva/Q4UuTrKixAIgDC6IFfEu1m/QB8esWMbdOPwYG/XBvP8Fj9jOJLfq88I="}]},"_npmUser":{"name":"ice1","email":"ice1github@gmail.com"},"directories":{},"maintainers":[{"name":"ice1","email":"ice1github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-actjs_1.0.0-b_1687347794517_0.7953233675005178"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-21T11:43:14.516Z","1.0.0-b":"2023-06-21T11:43:14.713Z","modified":"2023-06-21T11:43:14.868Z"},"maintainers":[{"name":"ice1","email":"ice1github@gmail.com"}],"description":"[Modern Act](https://github.com/ICe1BotMaker/modern-act) didn't go as well as I thought, and I was very disappointed, so I made a new one.","license":"ISC","readme":"# Act.js \r\n\r\n[Modern Act](https://github.com/ICe1BotMaker/modern-act) didn't go as well as I thought, and I was very disappointed, so I made a new one.\r\n\r\n### An improvement\r\n\r\n- <u>**_(not yet)_** The original **Modern Act** was if xml was parsed to js, **Act.js** uses js and xml together.</u>\r\n\r\n- The existing **Modern Act** used the express module, but **Act.js** implemented the server directly using the http module.\r\n\r\n- Overall, the serious security concerns of the **Modern Act** have been improved.\r\n\r\n### Usage\r\n\r\nPackage **act.js** already exists and has been replaced with **n-actjs**\r\n\r\n```js\r\nimport Act from 'n-actjs';\r\n\r\nconst doc = {\r\n    route: `/home`,\r\n    method: `get`,\r\n    header: { \"Content-Type\": \"text/html\" },\r\n    body: Act.createElement(`embed`, {}, \r\n        Act.createElement(`title`, {}, `Examples`),\r\n\r\n        Act.createElement(`div`, {}, \r\n            Act.createElement(`h1`, {}, `Hello, world!`)\r\n        ),\r\n    )\r\n};\r\n\r\nexport default doc;\r\n```\r\n","readmeFilename":"README.md"}