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

apollonius

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollonius - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

index.cjs

14

package.json
{
"name": "apollonius",
"version": "0.2.3",
"version": "0.3.0",
"description": "Solves Apollonius' problem by finding a fourth circle tangent to three given circles",
"type": "module",
"main": "./index.js",
"exports": "./index.js",
"types": "./index.d.ts",
"exports": {
"import": "./index.js",
"require": "./index.cjs"
},
"scripts": {
"build": "rollup index.js --file index.cjs --format cjs",
"lint": "standard",
"test:unit": "node test/index.js",
"test:types": "tsc test/types.ts",
"test": "npm run lint && npm run test:unit",
"test:types": "echo \"Expect error:\" && ! tsc test/types.ts",
"test:cjs": "node test/commonjs.cjs",
"test": "npm run lint && npm run test:types && npm run build && npm run test:cjs && npm run test:unit",
"release": "npm test && npm publish"

@@ -40,2 +45,3 @@ },

"devDependencies": {
"rollup": "^4.24.0",
"standard": "^17.1.2",

@@ -42,0 +48,0 @@ "tape": "^5.9.0",

@@ -28,3 +28,4 @@ # apollonius

```
import 'apollonius'
import apollonius from 'apollonius'
// OR const apollonius = require('apollonius').default

@@ -47,3 +48,3 @@ // Prepare three known circles.

const c1 = { x: 3, y: 2, r: -1 } // r < 0, thus internally tangent
const c2 = { x: 7, y: 2, r: 2 } // r > 0, thus externally tangent
const c2 = { x: 7, y: 2, r: 2 } // externally tangent
const c3 = { x: 3, y: 5, r: -1 } // r < 0, thus internally tangent

@@ -50,0 +51,0 @@

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