From 3d55d77216f17981bcfc6147eb1eeebf87ef2c63 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Sat, 2 Nov 2024 18:58:42 -0400 Subject: [PATCH] Package updates --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ README.md | 10 ++++++++-- package.json | 11 ++++------- 3 files changed, 51 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9caf3bd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Tests + +on: [push, pull_request] + +env: + FORCE_COLOR: 2 + +jobs: + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node: [20] + os: [ubuntu-latest, windows-latest] + + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - name: Install npm dependencies + run: npm i + + - name: Run tests + run: npm test + + # We test multiple Windows shells because of prior stdout buffering issues + # filed against Grunt. https://github.com/joyent/node/issues/3584 + - name: Run PowerShell tests + run: "npm test # PowerShell" # Pass comment to PS for easier debugging + shell: powershell + if: startsWith(matrix.os, 'windows') diff --git a/README.md b/README.md index 20c364e..4e6ef67 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# exit [![Build Status](https://secure.travis-ci.org/cowboy/node-exit.png?branch=master)](http://travis-ci.org/cowboy/node-exit) +# exit + +Fork of unmaintained https://github.com/cowboy/node-exit A replacement for process.exit that ensures stdio are fully drained before exiting. @@ -11,10 +13,11 @@ Tested in OS X 10.8, Windows 7 on Node.js 0.8.25 and 0.10.18. Based on some code by [@vladikoff](https://github.com/vladikoff). ## Getting Started + Install the module with: `npm install exit` ```javascript -var exit = require('exit'); +var exit = require("exit"); // These lines should appear in the output, EVEN ON WINDOWS. console.log("omg"); @@ -63,13 +66,16 @@ C:\node-exit\test\fixtures> ``` ## Contributing + In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). ## Release History + 2013-11-26 - v0.1.2 - Fixed a bug with hanging processes. 2013-09-26 - v0.1.1 - Fixed some bugs. It seems to actually work now! 2013-09-20 - v0.1.0 - Initial release. ## License + Copyright (c) 2013 "Cowboy" Ben Alman Licensed under the MIT license. diff --git a/package.json b/package.json index 0d5ecb5..678addb 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,15 @@ { "name": "exit", "description": "A replacement for process.exit that ensures stdio are fully drained before exiting.", - "version": "0.1.2", + "version": "0.2.0", "homepage": "https://github.com/cowboy/node-exit", - "author": { - "name": "\"Cowboy\" Ben Alman", - "url": "http://benalman.com/" - }, + "author": "Grunt Development Team (https://gruntjs.com/development-team)", "repository": { "type": "git", - "url": "git://github.com/cowboy/node-exit.git" + "url": "git://github.com/gruntjs/node-exit-x.git" }, "bugs": { - "url": "https://github.com/cowboy/node-exit/issues" + "url": "https://github.com/gruntjs/node-exit/issues" }, "license": "MIT", "main": "lib/exit",