New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gptsort

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gptsort

A true O(1) sorting algorithm!

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gptsort

A true O(1) sorting algorithm, gptsort is the best way to sort any array. All you have to do is call a simple function and let ChatGPT handle the rest in constant time!

Yes this is a joke

Installation

npm install gptsort

Usage

import sort from "gptsort";

const array = [87, 23, 45, 12, 98, 56, 77, 34, 90, 11, 67, 29, 5];
const api_key = "YOUR OPENAI API KEY HERE";

sort(array, api_key).then((sorted) => { // O(1)!
  console.log(sorted); // [5, 11, 12, 23, 29, 34, 45, 56, 67, 77, 87, 90, 98]
});

note: there is no guarantee that the sort function will correctly sort the array. it is up to you if this risk is worth the efficiency that this new sorting algorithm provides.

Keywords

gpt

FAQs

Package last updated on 18 Nov 2024

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