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

nopi.js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nopi.js - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

api_template/middleware/.gitkeep

7

file_templates/controller.js

@@ -5,6 +5,13 @@ // Route Dependencies

// Import Model
// Routes ----------------------------
// Example:
// router.get('/:id', function(req, res) {
// Logic Goes Here
//})
// ------------------------------------
module.exports = router;

2

index.js

@@ -14,3 +14,3 @@ #!/usr/bin/env node

program
.version('0.0.1')
.version('0.0.2')
.option('new <apiName>', 'Generate New Node API.')

@@ -17,0 +17,0 @@ .option('controller <controllerName>', 'Generate Controller file.')

{
"name": "nopi.js",
"version": "0.0.1",
"description": "CLI for generating Node APIs",
"version": "0.0.2",
"description": "CLI Tool/Framework for generating Node APIs and Files",
"main": "index.js",

@@ -6,0 +6,0 @@ "keywords": [

# nopi
### *Nopi* is a CLI Tool for generating a simple Node API.
### *Nopi* is a CLI Tool / Framework for generating a simple Node API and Files.
![](nopi.png)
___

@@ -23,3 +24,3 @@ ### Installation

Once it is done, cd to project and start the server with:
Once it is done, cd to API and start the server with:

@@ -44,3 +45,3 @@ ```$ npm start```

Controllers which are generated should be added to the ```index.js``` to connect and route with intended endpoint. Once the controller is setup inside of the index controller, it is connected to your API.
Controllers which are generated should be added to the ```index.js``` to connect and route with intended endpoint. Once the controller is setup inside of the index controller, it is connected to your API server.

@@ -47,0 +48,0 @@ *Nopi* also creates ```.nopiPath``` folder in your project and saves the path of the file type generated. This is to optimize the speed of file creation. By saving this path *Nopi* does not have to dynamically find the folder again after each generated file.

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