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

altitude

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

altitude - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

main.js

55

index.js

@@ -1,7 +0,54 @@

//index.js
function al() {
function hello() {
return "hello Altitude"
let data = []
let intervals = []
function table(data, options = {}) {
let {
mode = "startstop"
} = options;
data = data
}
table.data = function (_) {
return arguments.length
? (data = _, table)
: data;
};
table.extent = () => {
let start = Infinity;
let end = -Infinity;
for (let i = 0; i < data.length; i++) {
start = Math.min(start, data[i][0]);
end = Math.max(end, data[i][1]);
}
return [start, end];
}
table.sort_by_start = () => {
data.sort((a, b) => {
return a[0] - b[0];
});
return data;
}
table.sort_by_end = () => {
data.sort((a, b) => {
return a[1] - b[1];
});
return data;
}
table.duration = () => {
return intervals == null ? 0 : intervals[0][1] - intervals[0][0];
}
return table
}
module.exports = hello
module.exports = al

12

package.json
{
"name": "altitude",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "tape -r esm 'test/**/*-test.js'"
},

@@ -21,3 +21,7 @@ "repository": {

},
"homepage": "https://github.com/romsson/altitude#readme"
}
"homepage": "https://github.com/romsson/altitude#readme",
"devDependencies": {
"tape": "^5.6.6",
"esm": "3"
}
}
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