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

xutil

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xutil - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/file.js

31

lib/xutil.js

@@ -17,2 +17,5 @@ /* ================================================================

var util = require('util');
var _file = require('./file');
var Type = require('./typeof');
/**

@@ -127,14 +130,2 @@ * noop

/**
* type
*/
function _type(c){
if (c === null || typeof c === "undefined") {
return String(c);
} else {
return Object.prototype.toString.call(c).replace(/\[object |\]/g, '').toLowerCase();
}
};
/**
* decode uri

@@ -165,9 +156,19 @@ */

indexOf: _indexOf,
type: _type,
decode: _decode
decode: _decode,
file: _file
};
_merge(util,Util);
/**
* merge typeof
*/
_merge(Util, Type);
/**
* merge origin util
*/
_merge(util, Util);
module.exports = util;
{
"name": "xutil",
"version": "0.0.2",
"version": "0.0.3",
"description": "xutil",

@@ -5,0 +5,0 @@ "bin": {

@@ -18,3 +18,2 @@ /* ================================================================

describe('', function(){
});
console.log(xutil.isString(1111111111))
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