New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kanhaiyalalsingh/tiny

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kanhaiyalalsingh/tiny - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

21

index.js

@@ -1,4 +0,17 @@

module.exports = function tiny(string) {
if (typeof string !== "string") throw new TypeError("Tiny wants a string!");
return string.replace(/\s/g, "");
};
const _ = require('lodash');
module.exports = {
str2arr: (iString) => {
if(typeof iString !== 'string') {
throw Error('Input to this function must be String');
}
return _.split(iString, ' ');
},
trim: (iString) => {
if(typeof iString !== 'string') {
throw Error('Input to this function must be String');
}
return _.trim(iString);
}
}

9

package.json
{
"name": "@kanhaiyalalsingh/tiny",
"version": "1.0.0",
"version": "1.0.1",
"description": "Removes all spaces from a string",

@@ -14,3 +14,6 @@ "license": "MIT",

"kanhaiya15"
]
}
],
"dependencies": {
"lodash": "^4.17.11"
}
}
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