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

pconf

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pconf

An thin module for making easy configurations.

  • 1.1.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#pConf

##Install

###Install with npm

npm install pconf

##Requirements

This library will only work if you have access to your computers HOME directory, which in the most cases is where your user is located. To run a project with pconf, you need to have a package.json for your project, and start it with npm start.

##How to use

var Config = require("pconf");

var testConfig = new Config("testConfig");

testConfig.onload = function(){

  testConfig.setValue("test", 1, true); // key, value, (autosave, default=true)

  console.log(testConfig.getValue("test")); //Returns value of key, if it is unset, it will return undefined.

  testConfig.saveConfig(); // Saves the config

};

##Author

####Per Henrik Jakobsson

##License

Copyright (c) 2016 Per Henrik Jakobsson

Released under the MIT license

FAQs

Package last updated on 16 Oct 2016

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