New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

htmlrapier

Package Overview
Dependencies
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlrapier

A tiny mvc library for building web apps using rest apis.

latest
npmnpm
Version
28.0.0
Version published
Weekly downloads
5
-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

HtmlRapier

A tiny mvc library for building web apps using rest apis.

Visit https://threax.github.io/HtmlRapierDocs/ for more information.

Testing

To run the tests npm link this library into a hypermedia project.

Add the following to artifacts.json:


  {
    "pathBase": "./node_modules/htmlrapier/testPages",
    "outDir": "test/htmlrapier",
    "copy": [
      "./node_modules/htmlrapier/testPages/*"
    ]
  }

And the following to tsconfig.json:

under "paths"

"hr.test.*": [
    "node_modules\\htmlrapier\\test\\*"
],

under "include"

"node_modules\\htmlrapier\\test\\**\\*.ts",

visit https://projecturl/test/htmlrapier/unittests.html to test.

Removing Tests

To remove the tests you can fix your tsconfig by running import-tsconfig again and removing the lines from artifacts.json.

Using the Form Builder

Versions of HtmlRapier before version 19 had a built in default form that used styles from bootstrap 3. Newer versions remove this default form, since we don't actually have any dependency on bootstrap 3 other than the form. There is no simplified default form included, so if you are trying this library out please include htmlrapier.form.bootstrap3 or htmlrapier.form.bootstrap4 in your dependencies. Once you do this run threax-npm-tk tsconfig to import the tsconfig for the form. This will make it build with the rest of your typescript.

Documentation

The docs source is stored in this repo. To work on them run Edity McEditface in the docs folder. You can publish directly from there the output folder is ignored.

FAQs

Package last updated on 26 Aug 2023

Did you know?

Socket

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.

Install

Related posts