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 24, 2024 via pnpm

json-server 0.17.3

Get a full fake REST API with zero coding in less than 30 seconds
Package summary
Share
0
issues
8
licenses
289
MIT
26
ISC
7
Apache-2.0
13
other licenses
BSD-2-Clause
6
BSD-3-Clause
3
(MIT OR CC0-1.0)
2
Python-2.0
1
+ 1 more
Package created
3 Dec 2013
Version published
21 Mar 2023
Maintainers
1
Total deps
335
Direct deps
20
License
MIT

Issues

0
This package has no issues

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
289 Packages, Including:
@aashutoshrathi/word-wrap@1.2.6
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
@types/json5@0.0.29
accepts@1.3.8
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
array-buffer-byte-length@1.0.1
array-flatten@1.1.1
array-includes@3.1.7
array.prototype.filter@1.0.3
array.prototype.findlastindex@1.2.4
array.prototype.flat@1.3.2
array.prototype.flatmap@1.3.2
array.prototype.tosorted@1.1.3
arraybuffer.prototype.slice@1.0.3
asynciterator.prototype@1.0.0
available-typed-arrays@1.0.7
balanced-match@1.0.2
basic-auth@2.0.1
body-parser@1.20.1
body-parser@1.20.2
brace-expansion@1.1.11
builtins@5.0.1
bytes@3.0.0
bytes@3.1.2
call-bind@1.0.7
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
compressible@2.0.18
compression@1.7.4
concat-map@0.0.1
connect-pause@0.1.1
content-disposition@0.5.4
content-type@1.0.5
cookie-signature@1.0.6
cookie@0.5.0
cors@2.8.5
cross-spawn@7.0.3
debug@2.6.9

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
26 Packages, Including:
@ungap/structured-clone@1.2.0
cliui@8.0.1
eslint-plugin-promise@6.1.1
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
get-caller-file@2.0.5
glob-parent@6.0.2
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
lru-cache@6.0.0
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
semver@6.3.1
semver@7.6.0
server-destroy@1.0.1
setprototypeof@1.2.0
which@2.0.2
wrappy@1.0.2
y18n@5.0.8
yallist@4.0.0
yargs-parser@21.1.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
7 Packages, Including:
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
doctrine@2.1.0
doctrine@3.0.0
eslint-visitor-keys@1.3.0
eslint-visitor-keys@2.1.0
eslint-visitor-keys@3.4.3

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
6 Packages, Including:
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

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
3 Packages, Including:
@humanwhocodes/object-schema@2.0.2
esquery@1.5.0
qs@6.11.0

(MIT OR CC0-1.0)

Public Domain
2 Packages, Including:
type-fest@0.20.2
type-fest@0.3.1

Python 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
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

BSD Zero Clause 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
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
version-guard@1.1.1
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

20
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
chalk4.1.211.31 kBMIT
prod
compression1.7.47.64 kBMIT
prod
connect-pause0.1.11.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.14.14.13 kBMIT
prod
lodash4.17.21311.49 kBMIT
prod
lowdb1.0.010.7 kBMIT
prod
method-override3.0.05.71 kBMIT
prod
morgan1.10.09.37 kBMIT
prod
nanoid3.3.75.42 kBMIT
prod
please-upgrade-node3.2.02.73 kBMIT
prod
pluralize8.0.05.89 kBMIT
prod
server-destroy1.0.11.52 kBISC
prod
standard17.1.042.5 kBMIT
prod
yargs17.7.264.15 kBMIT
prod

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.