Skip to content

Commit

Permalink
move to tinyhttp org
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Sep 28, 2023
1 parent e6a01fa commit d355e5f
Show file tree
Hide file tree
Showing 8 changed files with 1,281 additions and 504 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"env": {
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"]
}
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.16.1'
node-version: '16'
- name: install pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v2
with:
version: 6.2.5
version: 8
- run: pnpm install
- run: pnpm test:coverage
- run: pnpm test:report
Expand Down
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# es-vary
# @tinyhttp/vary

![Vulnerabilities][snyk-image]
[![Version][npm-v-image]][npm-url]
[![Node Version][node-version-image]][node-version-url]
[![Version][v-badge-url]][npm-url] [![Downloads][dl-badge-url]][npm-url] [![GitHub Workflow Status][gh-actions-img]][github-actions] [![Codecov][cov-badge-url]][cov-url]

> [`vary`](https://github.com/jshttp/vary) rewrite in TypeScript with ESM and CommonJS targets
Expand All @@ -11,13 +9,13 @@ Manipulate the HTTP Vary header
## Install

```sh
pnpm i es-vary
pnpm i @tinyhttp/vary
```

## API

```ts
import { vary, append } from 'es-vary'
import { vary, append } from '@tinyhttp/vary'
```

### `vary(res, field)`
Expand Down Expand Up @@ -51,7 +49,7 @@ append('Accept, User-Agent', 'Origin')

```ts
import { createServer } from 'http'
import { vary } from 'es-vary'
import { vary } from '@tinyhttp/vary'

createServer((req, res) => {
// about to user-agent sniff
Expand All @@ -70,8 +68,10 @@ createServer((req, res) => {

MIT © [v1rtl](https://v1rtl.site)

[node-version-image]: https://img.shields.io/node/v/es-vary.svg?style=flat-square
[node-version-url]: https://nodejs.org
[snyk-image]: https://img.shields.io/snyk/vulnerabilities/npm/es-vary.svg?style=flat-square
[npm-v-image]: https://img.shields.io/npm/v/es-vary.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/es-vary
[v-badge-url]: https://img.shields.io/npm/v/@tinyhttp/vary.svg?style=for-the-badge&color=FF69B4&label=&logo=npm
[npm-url]: https://www.npmjs.com/package/@tinyhttp/vary
[cov-badge-url]: https://img.shields.io/coveralls/github/tinyhttp/vary?style=for-the-badge&color=FF69B4
[cov-url]: https://coveralls.io/github/tinyhttp/vary
[dl-badge-url]: https://img.shields.io/npm/dt/@tinyhttp/vary?style=for-the-badge&color=FF69B4
[github-actions]: https://github.com/tinyhttp/vary/actions
[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/tinyhttp/vary/main.yml?branch=master&style=for-the-badge&color=FF69B4&label=&logo=github
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es-vary",
"description": "vary rewrite in TypeScript with ESM and CommonJS targets",
"name": "@tinyhttp/vary",
"description": "vary rewrite in TypeScript and ESM",
"version": "0.1.2",
"type": "module",
"exports": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/talentlessguy/es-vary.git"
"url": "git+https://github.com/tinyhttp/vary.git"
},
"keywords": [
"http",
Expand All @@ -30,21 +30,20 @@
"files": [
"dist"
],
"directories": {
"test": "test"
},
"author": "v1rtl",
"license": "MIT",
"bugs": {
"url": "https://github.com/talentlessguy/es-vary/issues"
"url": "https://github.com/tinyhttp/vary/issues"
},
"homepage": "https://github.com/talentlessguy/es-vary#readme",
"homepage": "https://github.com/tinyhttp/vary#readme",
"devDependencies": {
"@types/node": "^15.6.0",
"c8": "^7.11.0",
"tsm": "^2.2.1",
"tsup": "^4.11.0",
"typescript": "^4.2.4",
"uvu": "^0.5.3"
"@types/node": "^20.7.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"c8": "^8.0.1",
"tsm": "^2.3.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"uvu": "^0.5.6"
}
}
Loading

0 comments on commit d355e5f

Please sign in to comment.