Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including angular-jsf with all npm packages installed. Try it out:

var angularJsf = require("angular-jsf")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

angular-jsf v0.1.1

AngularJS mock factory based on JSON-Schema-faker

angular-jsf logo

angular-jsf

NPM version

angular-jsf combines built-in angular $httpBackend service with JSON-Schema-faker massive mock data generator. It provides an easy to use interface for defining RESTful endpoints, such as this one:

jsfRegisterMock({
    name: 'User Item',
    url: /\/users\/(\d+)/,
    method: 'GET',
    responseSchema: {
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "faker": "name.findName"
            }
        },
        "required": [ "name" ]
    }
});
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free