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

flexion-geometry-classifier

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexion-geometry-classifier

[![npm version](https://badge.fury.io/js/flexion-geometry-classifier.svg)](https://badge.fury.io/js/flexion-geometry-classifier) [![Build Status](https://travis-ci.org/acao/flexion-geometry-classifier.svg?branch=master)](https://travis-ci.org/acao/flexion

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

npm version Build Status Coverage Status

A simple tool for classifying geometries

Installation

CLI

npm i -g flexion-geometry-classifier

or

yarn add global flexion-geometry-classifier

Library

npm i -S flexion-geometry-classifier

Usage

CLI

$ geometry-cli 2.3 2.3 2.3
this triangle is an equilateral
finished in 2.34ms

Library

The library returns a promise.

import classifier from "flexion-geometry-classifier";
classifier([2.2, 2.2, 2.2])
  .then(success =>
    console.log(`you have returned a ${success.geometryLabel} of type ${success.type}`)
  )
  .catch(message => console.error(message));

WebApp

The webapp was an afterthought last night, more a proof of concept for the universal library and is not to be evaluated as a progressive web app by any means

Development

npm run build builds the library output.

npm run build-web runs webpack

npm run dev runs webpack with --watch

npm run flow runs flow

npm run eslint runs eslint

npm run test will run a suite of e2e tests for the cli i wrote when it was originally just a CLI. yes, no unit tests or e2e web tests. oh well!

FAQs

Package last updated on 24 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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