
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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 0 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.