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

crabjs

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crabjs

CrabJS is a powerful API Framework that works with a lot of outstanding modules and is fully configured by annotations.

latest
Source
npmnpm
Version
2.1.8
Version published
Maintainers
1
Created
Source

CrabJS

easy work is comming... (under development)

NPM version

CrabJS is a powerfull API Framework that works with a lot of outstanding modules and is fully configured by annotations.

To install, run:

npm install -g crabjs

If you want to see available options con cjs, you can see the help.

cjs -h or cjs --help

To create / initiate a project, just type inside the directory:

cjs init

How does it works?

With CrabJS cli, you can easily create API controllers and entities for your backend. When you initiate a project, you will receive your first credentials to your API. CrabJS uses Express to route paths and it is so easy to create an example controller. To do this, just type:

cjs create mycontroller

As we use annotations to perform api settings, you need to specify the paths you want to map. After you create an controller, you will see this content on controller file:

/**
* @Controller
* @route('/mycontroller')
*/
  function mycontroller() {
  /**
    * @route('/')
    * @method('GET')
    */
    this.get = function (req, res) {
       res.send("alive");
    } 
  }

module.exports = mycontroller;

The routes for controller are specified with annotations. To test this controller, you just need run the ptoject and do a request (GET method) for your project url:

Run: npm start or node app.js

Url to do the request:

http://your_api_url/mycontroller

Keywords

api

FAQs

Package last updated on 21 Jan 2026

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