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

questing

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

questing

### Install: `yarn add questing` or `npm install --save questing`

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

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

questing

Install:

yarn add questing or npm install --save questing

Use:

gameData.json

{
  "title": "Brief",
  "author": "Wolfgang Schuster",
  "inventory": [],
  "location": "start",
  "items": {
    "pebble": "A tiny stone, not sure it could be used for anything"
  },
  "spaces": {
    "start": {
      "description": "A small white room with a red door and a steel gate.",
      "exits": {
        "red_door": {
          "destination": "end",
          "locked": "pebble"
        },
        "steel_gate": {
          "destination": "other",
          "locked": false
        }
      },
      "items": []
    },
    "other": {
      "description": "A circular room with a steel gate.",
      "exits": {
        "steel_gate": {
          "destination": "start",
          "locked": false
        }
      },
      "items": [
        "pebble"
      ]
    },
    "end": {
      "description": "A large open field, you've won the game!",
      "exits": {
        "red_door": {
          "destination": "start",
          "locked": false
        }
      },
      "items": []
    }
  }
}

myGame.js

const questing = require('./index');
const gameData = require('./gameData.json');

questing(gameData);

Then just node ./myGame from a terminal!

FAQs

Package last updated on 31 Dec 2017

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