Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amir-cli/cli-init

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

@amir-cli/cli-init

init plugin for cli

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cli-init

This is the GET plugin for CLI project.

image

Usages:

  • INIT --object={myStringifiedObjectHere} :
    will reset the datastore with provided object. For example INIT --object="{'name':'foo'}" will set/initialize the datasource with {'name':'foo'}
  • INIT --file=sourceFilePath :
    will reset the datastore the JSON file you provide. For example: INIT --file="test.json"

Connector structore:

  • test Folder: Each usage is unit tested using mocha
  • init.js file: It's like Data Access Object (DAO) of the connector where it exposes the newly implemented commands
  • initHandlers.js file: It's the handler for each exposed usages

Unit tests:

  • This connector comes with it's own unit tests written in mocha, you can run unit tests for each module sperataly using npm test command.

Keywords

FAQs

Package last updated on 16 May 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc