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

json-server

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-server - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

6

lib/cli/index.js
"use strict";
const updateNotifier = require('update-notifier');
const yargs = require('yargs');

@@ -12,6 +10,2 @@

module.exports = function () {
updateNotifier({
pkg
}).notify();
const argv = yargs.config('config').usage('$0 [options] <source>').options({

@@ -18,0 +12,0 @@ port: {

3

package.json
{
"name": "json-server",
"version": "0.17.0",
"version": "0.17.1",
"description": "Get a full fake REST API with zero coding in less than 30 seconds",

@@ -41,3 +41,2 @@ "main": "./lib/server/index.js",

"server-destroy": "^1.0.1",
"update-notifier": "^5.1.0",
"yargs": "^17.0.1"

@@ -44,0 +43,0 @@ },

@@ -14,3 +14,3 @@ # JSON Server [![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)

* :owl: [lowdb - local JSON database](https://github.com/typicode/lowdb)
* :x: :heavy_check_mark: [xv - the most minimalist test runner](https://github.com/typicode/xv)
* βœ… [xv - a beautifully simple and capable test runner](https://github.com/typicode/xv)

@@ -40,4 +40,4 @@ <p>&nbsp;</p>

<p align="center">
<a href="https://www.deta.sh/?ref=typicode" target="_blank">
<img src="https://jsonplaceholder.typicode.com/deta.svg" height="70px">
<a href="https://megafamous.com/buy-instagram-followers" target="_blank">
<img src="https://jsonplaceholder.typicode.com/megafamous.png" height="70px">
</a>

@@ -48,18 +48,14 @@ </p>

<p align="center">
<a href="https://uibakery.io/?utm_source=json_server&utm_medium=sponsor&utm_campaign=github" target="_blank">
<img src="https://jsonplaceholder.typicode.com/ui_bakery.jpg" height="70px">
</a>
</p>
<p>&nbsp;</p>
<h2 align="center">Silver sponsors πŸ₯ˆ</h2>
<p>&nbsp;</p>
---
<p align="center">
<a href="https://cased.com" target="_blank">
<img src="https://user-images.githubusercontent.com/5502029/194441951-b7dca49d-efd6-496d-900b-288004717f11.png" height="55px">
</a>
</p>
From generating an API to importing a CSV into postgres, Retool’s range of 20+ developer utilities is a go-to resource when building apps. [Check it out now](https://retool.com/utilities/)
---
<p>&nbsp;</p>

@@ -488,2 +484,4 @@

To add custom options (eg. `foreginKeySuffix`) pass in an object as the second argument to `jsonServer.router('db.json', { foreginKeySuffix: '_id' })`.
Please note also that `jsonServer.router()` can be used in existing Express projects.

@@ -610,6 +608,8 @@

__`jsonServer.router([path|object])`__
__`jsonServer.router([path|object], [options])`__
Returns JSON Server router.
* options (see [CLI usage](#cli-usage))
### Deployment

@@ -616,0 +616,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