From 0abad5e52245706d833bed4e175b34f488d8e489 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 01:41:32 +0000 Subject: [PATCH] chore: Modernize package.json This commit cleans up and modernizes the package.json file by: - Improving the description and adding keywords for better discoverability. - Adding a 'gypfile: true' property. - Including a 'contributors' section based on the README. - Adding an 'install' script to run 'node-gyp rebuild'. - Adding a placeholder 'test' script. - Adding 'devDependencies' for 'node-gyp', 'eslint', and 'mocha' to support a modern development workflow. --- package.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d40dc3..7db2eb3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "i2c", "version": "0.3.0", - "description": "Native bindings for i2c-dev. Plays well with Raspberry Pi and BeagleBone.", + "description": "Native I2C bindings for Node.js. This module provides an interface to i2c-dev, making it easy to communicate with I2C devices on hardware like Raspberry Pi and BeagleBone.", "main": "main.js", "author": "Kelly Korevec", "repository": { @@ -9,9 +9,30 @@ "url": "http://github.com/korevec/node-i2c.git" }, "license": "BSD-3-Clause-Attribution", + "keywords": [ + "i2c", + "i2c-dev", + "raspberry pi", + "beaglebone", + "hardware" + ], + "gypfile": true, + "contributors": [ + "alphacharlie", + "J-Cat" + ], + "scripts": { + "install": "node-gyp rebuild", + "test": "echo \"Error: no test specified\" && exit 1" + }, "dependencies": { "bindings": "^1.5.0", "nan": "^2.24.0" }, + "devDependencies": { + "eslint": "^9.39.2", + "mocha": "^11.7.5", + "node-gyp": "^12.1.0" + }, "engine": "node >= 18.0.0" }