Skip to content

Commit

Permalink
Package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Nov 2, 2024
1 parent 758d9d9 commit 3d55d77
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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')
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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");
Expand Down Expand Up @@ -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.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3d55d77

Please sign in to comment.