You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@coffeekraken/s-sugar-json

Package Overview
Dependencies
12
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coffeekraken/s-sugar-json

Simple class that let you list and read sugar.json files. A sugar.json file is more or less the configuration you want to apply in your project regarding the Coffeekraken toolchain...


Version published
Maintainers
1
Created

Readme

Source

@coffeekraken/s-sugar-json

MIT 2.0.0-alpha.20 - Git repository

size downloads license discord

Simple class that let you list and read sugar.json files. A sugar.json file is more or less the configuration you want to apply in your project regarding the Coffeekraken toolchain...

Install

npm i @coffeekraken/s-sugar-json

Work with sugar.json files

This package allows you to access to sugar.json file(s) with ease.

Usage

Here's how to use our implementation:

import __SSugarJson from '@coffeekraken/s-sugar-json';
const sugarJson = new __SSugarJson({});
const filesContents = await sugarJson.read();
const current = await sugarJson.current();
const files = await sugarJson.search();

Settings

SSugarJsonSettingsInterface
packages

Specify an array of packages names in which to search for sugar.json file

includePackage
1

Specify if the current package has to be included in the search

includeModules
1

Specify if the current package "node_modules" folder has to be included in the search

includeGlobal
1

Specify if the global "node_modules" folder has to be included in the search

includeTop
1

Specify if the root package folder in case of a mono-repo has to be included in the search

API

For more information about the API of this class, please check our API documentation

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Here's all the ways you can contact us listed:

discord email

FAQs

Package last updated on 15 Sep 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc