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

gpt-tokens

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt-tokens - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

index.d.ts

6

package.json
{
"name": "gpt-tokens",
"version": "1.0.1",
"version": "1.0.2",
"description": "Calculate the token consumption and amount of openai gpt message",

@@ -15,2 +15,5 @@ "keywords": [

],
"scripts": {
"build": "tsc"
},
"main": "index.js",

@@ -25,4 +28,5 @@ "repository": "https://github.com/Cainier/gpt-tokens",

"devDependencies": {
"@types/node": "^12.20.0",
"typescript": "^5.0.4"
}
}
# gpt-tokens
[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
> GPT tokens / price Calculate

@@ -4,0 +6,0 @@

3

tsconfig.json

@@ -54,3 +54,4 @@ {

/* Emit */
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declaration": true,
/* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */

@@ -57,0 +58,0 @@ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */

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