New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

survey-maker

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

survey-maker

Rest based server for making and conducting simple surveys.

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

survey-maker

Host your own simple surveys!

Configure this basic survey server to listen on the port of your liking on the command line:

$ survey-maker 2015

Once the server is listening, post to the "survey" URL to create a new survey:

$ curl --data "{
  \"Name\" : \"Test\",
  \"Email\" : \"test@email.test\"',
  \"Volunteering\" : \"[true,false]\",
  \"Interests\" : \"Helping others.\",
  \"Program\" : \"[true,false]\",
  \"Years\" : \"10\",
  \"Languages\" : \"[\"blockly\",\"java\",\"javascript\",\"c\",\"cpp\"]\"\
}" http://localhost:3000/survey/SimpleTest

You can then refer to this survey in subsequent posts, with the server handling verification of the submitted fields for you:

$ curl --data "{
      \"Survey\" : \"Test\",
      \"Name\" : \"Jill Tester\",
      \"Email\" : \"jill@example.test\",
      \"Volunteering\" : \"true\"
      \"Interests\" : \"Learning\",
      \"Program\" : \"false\",
      \"Years\" : \"0\",
      \"Languages\" : \"[]\"  
  }" http://locahost:3000/survey/SimpleTest/example

Values are checked for type equivalency and arrays checked to see if they also contain equivalent types.

Results are available as well:

$ curl http://localhost:3000/results/SimpleTest

Hope you have fun creating surveys!

Note: This program uses a very light-weight serialization layer; for heavy use you will probably want to swap out the data-store for something more robust.

FAQs

Package last updated on 28 May 2015

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

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