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

@santi100a/quadratic-function

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

@santi100a/quadratic-function - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

CHANGELOG.md

@@ -1,15 +0,7 @@

<!-- # Changelog -->
# Changelog
<!--
! This is very important.
! Keep in mind the CI workflow is expecting this file to be structured as shown below
! and to be in sync with the "version" field of your package.json.
## Version <first version's tag>
## Version 0.0.1
- First version!
## Version <next version>
- <a feature introduced in this version>
- <another feature>
...
-->
## Version 0.0.2
- Modified documentation.

@@ -58,3 +58,3 @@ # Contributor Covenant Code of Conduct

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to me at [maintainer contact method].
reported to me at <santyrojasprieto9+github@gmail.com>.
All complaints will be reviewed and investigated promptly and fairly.

@@ -61,0 +61,0 @@

{
"name": "@santi100a/quadratic-function",
"version": "0.0.1",
"version": "0.0.2",
"main": "cjs/index.js",

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

@@ -1,39 +0,3 @@

# Template for my NPM libraries
# Santi's Quadratic Function Toolkit
Hello, everyone! This is a template repo for my libraries.
You'll find a readme template inside this file.
In order for the CI workflow's publishing jobs to execute successfully, you must have two
Actions secrets set up -- `NPM_AUTH_TOKEN` and `GPR_AUTH_TOKEN`.
You might want to check the [YAML Actions workflow](.github/workflows/ci.yml) for hints
and information you may want or need to know.
## Template features
- License (both template contents and code built from it): MIT.
- Code of conduct: adapted from the Contributor Covenant.
- Package manager: Yarn 1.22.19.
- Automatic testing: Jest.
- TypeScript 4.9.5 for built-in type definitions and support for compiling to ES3.
- ESLint and Prettier.
- Security policy and contribution guidelines.
- Self-made scripts for verification of package.json and creation of an ESM wrapper
around TypeScript's CommonJS output to allow for usage within both CJS and ESM projects.
## Your todos as a user of this template
- [ ] Change all placeholders all over different files.
- [ ] Fill this README template.
<!-- START README TEMPLATE -->
<!--
* Make sure to replace ALL placeholders.
! The readme will be broken otherwise!
-->
<!-- # Library Name -->
<!-- Badges -->
<!-- Example:
[![Build Status][workflow badge]][repo actions]

@@ -55,59 +19,34 @@ [![npm homepage][npm badge]][npm home]

[bundlephobia url]: https://bundlephobia.com/package/@santi100a/quadratic-function@latest
-->
<!-- Bullet points -->
<!-- Example:
- 🚀 Lightweight and fast[^](#disclaimers)
- 👴 ES3-compliant[*](#disclaimers)
- 🚀 Lightweight and fast
- 👴 ES3-compliant
- 💻 Portable between the browser and Node.js
-->
<!-- ## What's this? -->
<!-- Description -->
<!-- Mentions, inspirations -->
## What's this?
<!-- ## Installation -->
<!-- Installation steps and/or commands -->
<!-- Example:
This is a small library that allows you to calculate things like the vertex or roots of a
quadratic function. Quadratic equations can be solved using the latter.
## Installation
- Via NPM: `npm install @santi100a/quadratic-function`
- Via Yarn: `yarn add @santi100a/quadratic-function`
- Via PNPM: `pnpm install @santi100a/quadratic-function`
-->
<!-- ## API -->
<!--
* If a class/function/variable is deprecated, you must cross it out by wrapping the
* `<class/function/variable prototype/definition/type def>;` with tildes, like this:
* ~~`<class/function/variable prototype/definition/type def>;`~~ (deprecated [since <version>])
- `<class/function/variable prototype/definition/type def>;` ([since <version if not first version>]) ([deprecated [since <version>]]) <description>
## API
- `QuadraticFunction.vertex(): { x: number, y: number };` Returns an object containing the coordinates of the highest or lowest point the function will reach.
- `QuadraticFunction.roots(): [number?, number?];` Returns an object containing the coordinates of the highest or lowest point the function will reach.
- `QuadraticFunction.evaluate(x: number): number;` Evaluates the `QuadraticFunction` at `x`.
| Name | Type | Description | Optional? | Default |
|------------|-------------|--------------------|-----------|----------------------------------------|
|<param name>|<param type> |<param description> | <Yes/No> | <N/A if not optional, else the default>|
- ...
-->
|`x`|`number`|The value at which to evaluate the function.|Yes | _N/A_|
<!-- ## Usage -->
<!-- Usage examples (code snippets) -->
<!--
Usage examples go here
* This is a very important step.
## Usage
```typescript
```
-->
<!-- ## Contribute -->
## Contribute
<!-- Contribution hints and basic instructions -->
<!-- Example:
Wanna contribute? [File an issue](issues) or [pull request](pulls)!
Wanna contribute? [File an issue](https://github.com/santi100a/quadratic-function/issues) or [pull request](https://github.com/santi100a/quadratic-function/pulls)!
Look at [the contribution instructions](CONTRIBUTING.md) and make sure you follow the [contribution Code of Conduct](CODE_OF_CONDUCT.md).
-->
<!-- ## Disclaimers -->
<!-- Any disclaimers you may need. -->
<!--
**Hasn't been tested in an actual ES3 environment. Feel free to open an issue or pull request if you find any non-ES3 thing. See "Contribute" for instructions on how to do so.*
*^The source code is just a few kilobytes in size.*
-->

@@ -56,2 +56,2 @@ /**

export = QuadraticFunction;
export = QuadraticFunction;
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