Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 15, 2024 via pnpm

json-server 0.12.0

Serves JSON files through REST routes.
Package summary
Share
13
issues
7
high severity
vulnerability
1
license
2
meta
4
4
moderate severity
vulnerability
4
2
low severity
license
2
10
licenses
209
MIT
20
ISC
8
Apache-2.0
14
other licenses
BSD-3-Clause
5
BSD-2-Clause
4
(AFL-2.1 OR BSD-3-Clause)
1
(BSD-2-Clause OR MIT OR Apache-2.0)
1
+ 3 more
Package created
3 Dec 2013
Version published
2 Aug 2017
Maintainers
1
Total deps
251
Direct deps
22
License
MIT

Issues

13

7 high severity issues

high
Recommendation: Upgrade to version 4.2.1 or later
via: update-notifier@1.0.3
Recommendation: Validate that the license expression complies with your license policy
via: update-notifier@1.0.3
Recommendation: Read and validate the license terms
via: yargs@6.6.0
via: request@2.88.2
via: request@2.88.2
via: update-notifier@1.0.3
via: request@2.88.2
Collapse
Expand

4 moderate severity issues

moderate
Recommendation: Upgrade to version 5.0.1 or later
via: yargs@6.6.0
Recommendation: Upgrade to version 11.8.5 or later
via: update-notifier@1.0.3
Recommendation: None
via: request@2.88.2
Recommendation: Upgrade to version 4.1.3 or later
via: request@2.88.2
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: yargs@6.6.0
Recommendation: Read and validate the license terms
via: yargs@6.6.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
209 Packages, Including:
@types/keyv@3.1.4
@types/node@20.11.19
@types/responselike@1.0.3
accepts@1.3.8
ajv@6.12.6
ansi-regex@2.1.1
ansi-styles@2.2.1
array-flatten@1.1.1
asn1@0.2.6
assert-plus@1.0.0
asynckit@0.4.0
aws4@1.12.0
basic-auth@2.0.1
body-parser@1.20.1
body-parser@1.20.2
boxen@0.6.0
bytes@3.0.0
bytes@3.1.2
call-bind@1.0.7
camelcase@2.1.1
camelcase@3.0.0
capture-stack-trace@1.0.2
chalk@1.1.3
cli-boxes@1.0.0
code-point-at@1.1.0
combined-stream@1.0.8
compressible@2.0.18
compression@1.7.4
connect-pause@0.1.0
content-disposition@0.5.4
content-type@1.0.5
cookie-signature@1.0.6
cookie@0.5.0
core-util-is@1.0.2
core-util-is@1.0.3
cors@2.8.5
create-error-class@3.0.2
dashdash@1.14.1
debug@2.6.9
debug@4.3.4
decamelize@1.2.0
deep-extend@0.6.0
define-data-property@1.1.4
delayed-stream@1.0.0
depd@2.0.0
destroy@1.2.0
dot-prop@3.0.0
ecc-jsbn@0.1.2
ee-first@1.1.1
encodeurl@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
20 Packages, Including:
ansi-align@1.1.0
cliui@3.2.0
get-caller-file@1.0.3
graceful-fs@4.2.11
har-schema@2.0.0
hosted-git-info@2.8.9
inherits@2.0.4
ini@1.3.8
json-stringify-safe@5.0.1
osenv@0.1.5
require-main-filename@1.0.1
semver@5.7.2
server-destroy@1.0.1
set-blocking@2.0.0
setprototypeof@1.2.0
slide@1.1.6
which-module@1.0.0
write-file-atomic@1.3.4
y18n@3.2.2
yargs-parser@4.2.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
8 Packages, Including:
aws-sign2@0.7.0
caseless@0.12.0
forever-agent@0.6.1
oauth-sign@0.9.0
request@2.88.2
spdx-correct@3.2.0
tunnel-agent@0.6.0
validate-npm-package-license@3.0.4

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
bcrypt-pbkdf@1.0.2
duplexer2@0.1.4
qs@6.11.0
qs@6.5.3
tough-cookie@2.5.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
configstore@2.1.0
normalize-package-data@2.5.0
update-notifier@1.0.3
uri-js@4.4.1

(AFL-2.1 OR BSD-3-Clause)

Permissive
1 Packages, Including:
json-schema@0.4.0

(BSD-2-Clause OR MIT OR Apache-2.0)

Expression
1 Packages, Including:
rc@1.2.8

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-license-ids@3.0.17

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
1 Packages, Including:
tweetnacl@0.14.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

22
All Dependencies CSV
β“˜ This is a list of json-server 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
body-parser1.20.214.75 kBMIT
prod
chalk1.1.35.11 kBMIT
prod
compression1.7.47.64 kBMIT
prod
connect-pause0.1.01.65 kBMIT
prod
cors2.8.56.03 kBMIT
prod
errorhandler1.5.15.75 kBMIT
prod
express-urlrewrite1.4.02.61 kBMIT
prod
express4.18.254.5 kBMIT
prod
json-parse-helpfulerror1.0.32.66 kBMIT
prod
lodash-id0.13.05.13 kBMIT
prod
lodash4.17.21311.49 kBMIT
prod
lowdb0.15.59.45 kBMIT
prod
method-override2.3.105.65 kBMIT
prod
morgan1.10.09.37 kBMIT
prod
object-assign4.1.12.61 kBMIT
prod
please-upgrade-node3.2.02.73 kBMIT
prod
pluralize3.1.05.46 kBMIT
prod
request2.88.257.83 kBApache-2.0
prod
3
2
server-destroy1.0.11.52 kBISC
prod
shortid2.2.168.45 kBMIT
prod
update-notifier1.0.34.3 kBBSD-2-Clause
prod
3
1
yargs6.6.063.77 kBMIT
prod
1
1
2

Visualizations

Frequently Asked Questions

What does json-server do?

JSON Server is a versatile tool that creates a full fake REST API with zero coding, ideally in less than 30 seconds. It is ideal for front-end developers who need a quick back-end for prototyping and mocking. With its ability to generate an API that camouflages real server-side backed functionality, this tool streamlines the development process, saving time and energy.

How do you use json-server?

Using JSON Server is a straightforward task, given its user-friendly nature. Let's break it down:

  1. Installation: Initiate the npm install command for json-server:
    npm install -g json-server
    
  2. Data setup: Create a db.json file with some data:
    {
      "posts": [
        { "id": 1, "title": "json-server", "author": "typicode" }
      ],
      "comments": [
        { "id": 1, "body": "some comment", "postId": 1 }
      ],
      "profile": { "name": "typicode" }
    }
    
  3. Starting the JSON Server: Use the json-server command to start the server:
    json-server --watch db.json
    

After following these steps, the JSON Server will be up and running, ready for data requests.

Where are the json-server docs?

The comprehensive documentation of JSON server is available in its GitHub repository: git://github.com/typicode/json-server.git. The repository readme includes an outline of getting started with basic installation instructions, followed by details on topics such as Routes, Extras, CLI usage, and Modules. Each topic is comprehensively covered with clear explanations and code snippets adding to the understanding of each feature and functionality provided by the JSON server. The repository also provides links to related video tutorials and articles, augmenting the understanding of the npm package from various other resources.