New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jsonp-filter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonp-filter

JSONP filter for express

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

jsonp-filter

jsonp filter for the express framework.

Introduction

The purpose of jsonp-filter is to provide an option to serve the response as jsonp (callback with string input).

Installing

Just grab node.js and npm and you're set:

npm install jsonp-filter

Note that jsonp-filter was developed using CoffeeScript.

Using

To utilize jsonp-filter, simply require it and then have the express server use the setupJSONP() method. To make sure that no other modules conflict with jsonp-filter, it should be used by the server before other 'use' methods.

jsonp = require 'jsonp-filter'

server.use jsonp.setupJSONP()

After jsonp-filter has been setup, responses can now be served as jsonp by specifying json=true&callback=callbackname as query string parameters.

Outstanding Issues

  • none at this time

Created by

  • Stephen Veerman

Keywords

coffeescript

FAQs

Package last updated on 12 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts