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

express-file-router

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-file-router - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "express-file-router",
"version": "0.0.7",
"version": "0.0.8",
"description": "File-based router for express",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,4 +23,5 @@ # express-file-router

│   ├── cars
│   │   ├── :id*
│   │   │   └── get.js
│   │   ├── id
│   │   │   ├── get.js
│   │   │   └── route.js
│   │   ├── get.js

@@ -94,2 +95,17 @@ │   │   └── post.js

### route.js
Return a route string which replaces the folder name.
Note that on linux filesystems, colon and other characters are allowed. Thus you don't necessarily need a `route.js`
file to specify a route with a parameter. However, it's still recommended to use a colon since Windows does not allow
special characters in file names.
Example: `route.js`
```js
module.exports = function() {
return ':someparam';
}
```
## License

@@ -96,0 +112,0 @@

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