Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename package #3

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanoquery
# picoquery

A lightweight query string parser/stringifier with support for nesting and some
configurability.
Expand All @@ -8,15 +8,15 @@ Built on top of [fast-querystring](https://github.com/anonrig/fast-querystring).
## Install

```sh
npm i -S nanoquery
npm i -S picoquery
```

## Usage

Parsing a query string:

```ts
import {parse} from 'nanoquery';
import {parse} from 'picoquery';

parse('foo.bar=abc&baz=def');

Expand Down
2 changes: 1 addition & 1 deletion bench/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const inputs = [
const bench = new Bench();

bench
.add('nanoquery (parse)', () => {
.add('picoquery (parse)', () => {
for (const input of inputs) {
parse(input);
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nanoquery",
"name": "picoquery",
"version": "0.0.0-dev",
"type": "module",
"description": "A small library for parsing and serialisation query strings",
Expand All @@ -10,15 +10,15 @@
],
"scripts": {
"build": "tsc",
"test": "npm run build && node --test",
"test": "npm run build && c8 node --test",
"lint": "eslint src",
"format": "prettier --write src",
"bench": "node ./bench/main.js",
"prepare": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/es-tooling/nanoquery.git"
"url": "git+https://github.com/es-tooling/picoquery.git"
},
"keywords": [
"qs",
Expand All @@ -30,9 +30,9 @@
"author": "James Garbutt (https://github.com/43081j)",
"license": "MIT",
"bugs": {
"url": "https://github.com/es-tooling/nanoquery/issues"
"url": "https://github.com/es-tooling/picoquery/issues"
},
"homepage": "https://github.com/es-tooling/nanoquery#readme",
"homepage": "https://github.com/es-tooling/picoquery#readme",
"devDependencies": {
"@eslint/js": "^9.1.1",
"@types/dlv": "^1.1.4",
Expand Down