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

kurami

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kurami

A command console system for nodejs project

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Kurami - Command manager

Kurami is a console command manager similar to the command system of Symfony.

Why Kurami ?

Nice question, and I have absolutly no answer, in reality it's just birth because needed to setup fixture in a project and wanted to have something clean. But you will probably find a better utility than me ^^

Installation

You can install it by using NPM locally :

npm install kurami

or globally :

npm install -g kurami

Setup

You can setup Kurami by creating a file named kurami.json in your project root directory to define the path to your command folder

{
  "commandsPath": "./path/to/your/commands/folder"
}

How it works ?

You can create a command file with this structur :

const { BaseCommand } = require('kurami');

class TestCommand extends BaseCommand {
    constructor() {
        super({
            name: 'test:test',
            description: 'Test command'
        });
    }

    async run() {
        console.log('Test command');
    }
}

module.exports = TestCommand;

If installed globally

Then run in your project kurami {commandName} in your project folder

If installed locally

Then run ./node_modules/.bin/kurami {commandName} in your project folder or add a npm script to run it more easily :

{
  "scripts": {
    "kurami": "kurami"
  }
}

Then run npm run kurami {commandName}

And done !

Disclaimer

It's an experimental version, some problem persist like sometime the command didn't exit after is end. I'm fully open for suggestion and more ! :D

Support me

If you like my work, you can support me by buying me a coffee and/or following me on twitter :D

Buy Me a Coffee at ko-fi.com Buy Me A Coffee My Twitter profile

FAQs

Package last updated on 07 Jan 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