{"library":"pg-interval","type":"library","category":null,"description":"A lightweight JavaScript library for parsing, formatting, and performing arithmetic on PostgreSQL interval strings. Current version 1.0.8 provides tools to create interval objects from 'HH:MM:SS' strings, format them with custom templates, and perform add, subtract, multiply, and diff operations. Unlike heavier libraries like moment.js or Luxon, pg-interval focuses solely on the PostgreSQL interval format, making it ideal for simple interval manipulations without dependencies. The library mutates objects for add/subtract but offers a clone option for multiply. It is primarily CommonJS with no ESM exports.","language":"javascript","status":"active","version":"1.0.8","tags":["javascript","pg","postgres","interval","parser","interval tools"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-interval","imports":["const pgi = require('pg-interval');","const pgi = require('pg-interval');","const pgi = require('pg-interval');"]},{"cmd":"yarn add pg-interval","imports":[]},{"cmd":"pnpm add pg-interval","imports":[]}],"homepage":"https://github.com/lw-like/pg-interval#readme","github":"https://github.com/lw-like/pg-interval","docs":null,"changelog":null,"pypi":null,"npm":"pg-interval","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}