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

cd-utils

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cd-utils - npm Package Compare versions

Comparing version 0.9.1 to 0.10.0

4

CHANGELOG.md
## Changelog
- 0.10.0
- Added `args` (alias for `params`)
- Added `arg` (alias for `param`)
- 0.9.0

@@ -4,0 +8,0 @@ - Added `date-fns` as helpers so they are available all the time :-)

@@ -36,2 +36,4 @@ /**

param: utils.param,
args: utils.params,
arg: utils.param,
padLeft: utils.padLeft,

@@ -38,0 +40,0 @@ padStart: utils.padLeft,

2

package.json
{
"name": "cd-utils",
"version": "0.9.1",
"version": "0.10.0",
"description": "CodeDungeon Utilities [WIP]",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,3 +23,3 @@ // MODULE TEST

beforeEach(function(){
str = 'Mike Erickson'
str = 'Mike Erickson';
pluralize = utils.pluralize;

@@ -136,2 +136,9 @@ });

it('should have arguments', function() {
args = utils.args();
if ( utils.is.object(args) ) {
args.should.be.a('object').and.not.be.empty;
}
});
it('should retrieve parameter from command line parameters', function() {

@@ -148,2 +155,13 @@

it('should retrieve argument from command line arguments', function() {
// ticket number (example -t 7000) will be cast to number
value = utils.arg('t');
if ( utils.is.number(value) ) {
expect(value).to.be.number;
} else {
expect(value).to.be.object;
}
})
it('should pad left supplied string', function(){

@@ -150,0 +168,0 @@ result = utils.padLeft(str, 20);

@@ -30,3 +30,3 @@ /**

// Keep gulp from hanging on this task
//this.emit('end');
this.emit('end');
};
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