Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qiao-config

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiao-config

json config to local file

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-94.81%
Maintainers
1
Weekly downloads
 
Created
Source

qiao-config

json config to local file

api

c

'use strict';

var q = require('qiao-config');

// default path
var _c1 = q.c();
console.log(_c1);

// custom path
var _c2 = q.c('../');
console.log(_c2);

all

'use strict';

var q = require('qiao-config');

var _c  = q.c();
var s   = _c.all();
console.log(s); // { test: 'hello' }

clear

'use strict';

var q = require('qiao-config');

var _c = q.c();
_c.clear();
console.log(_c.all()); // {}

config

'use strict';

var q = require('qiao-config');

var _c = q.c();

// set
_c.config('test', 'hello');
console.log(_c.all()); // { test: 'hello' }

// get
var s = _c.config('test');
console.log(s); // hello

// del
_c.config('test', null);
console.log(_c.all()); // {}

version

0.0.3.20201105

  1. c --> config
  2. custom path

0.0.2.20200901

  1. del ok
  2. c ok
  3. md

0.0.1.20200828

  1. init project
  2. get ok
  3. set ok
  4. all ok
  5. clear ok

Keywords

FAQs

Package last updated on 10 May 2022

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