Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
cd-core
Advanced tools
Readme
Common utility and resources (assets)
const core = require('cd-core');
Param | Description |
---|---|
ret ==> | Module Name |
const name = core.name; // returns module name
Param | Description |
---|---|
ret ==> | Version Number |
const vers = core.version; // returns module version
Param | Description |
---|---|
ret ==> | true or false |
const isWindows = core.isWindows(); // returns true if running on windows
Param | Description |
---|---|
ret ==> | true or false |
const isOSX = core.isOSX(); // returns true if running on osx
Param | Description |
---|---|
ret ==> | true or false |
const isLinux = core.isLinux(); // returns true if running on linux
Param | Description |
---|---|
ret ==> | Returns full path to asset path (icons, etc.) |
const assetPath = core.getAssetPath(); // returns core asset path
Param | Description |
---|---|
ret ==> | Returns path to module icon |
const moduleIconPath = core.getModuleIcon(); // returns path to module icon
Param | Description |
---|---|
ret ==> | Returns path to fail icon |
const failIconPath = core.getFailIcon(); // returns path to fail icon
Param | Description |
---|---|
ret ==> | Returns path to pass icon |
const passIconPath = core.getPassIcon(); // returns path to pass icon
Param | Description |
---|---|
message | Notification Messasge |
options | Notification Options |
showConsole: true or false | |
icon: path to override icon | |
title: title override |
core.notify('Hello', {showConsole: false}); // display default message and no console output
Param | Description |
---|---|
message | Notification Message |
options | Notification Options |
showConsole: true or false | |
icon: path to override icon | |
title: title override |
core.notifyPass('Process Completed Successfully'); // display default message
Param | Description |
---|---|
message | Notification Message |
options | Notification Options |
showConsole: true or false | |
icon: path to override icon | |
title: title override |
core.notifyFail('Process Failed To Complete'); // display default message
Copyright © 2017 Mike Erickson Released under the MIT license
cd-core written by Mike Erickson
E-Mail: codedungeon@gmail.com
Twitter: @codedungeon
Webiste: codedungeon.org
FAQs
Common utils used by CodeDungeon projects
The npm package cd-core receives a total of 18 weekly downloads. As such, cd-core popularity was classified as not popular.
We found that cd-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.