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

dsto

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsto - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "dsto",
"version": "1.0.0",
"version": "1.0.1",
"description": "Dimension String To Object",

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

@@ -0,1 +1,47 @@

To Install:
npm install dsto
..............................................................
Usage:
var dsto = require('dsto');
var obj1 = dsto.convert('30cmx40cm m');
console.log(obj1);
//output: { data: [0.3, 0.4], format: 'm' }
var obj2 = dsto.convert('30cmx40mx50km m');
console.log(obj2);
//output: { data: [0.3, 40, 50000], format: 'm' }
var obj3 = dsto.convert('30'x40'x50' in');
console.log(obj3);
//output: { data: [ 11.811, 15.748, 19.685 ], format: 'in' }
..............................................................
Currently supported units:
cm - centimeter
m - meter
km - kilometer
ft - feet
in - inch
' - centimeter
" - inch
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