Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
BunHouth committed Apr 27, 2024
1 parent bdb9e0d commit b5199d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The implementation of strong parameters was previously forked from [koa-strong-p
Install the [npm](https://www.npmjs.org/package/strong-params) package.

```
npm install strong-params --save
npm install strong-parameter --save
```

#### Attach the middleware.
Expand All @@ -22,15 +22,15 @@ npm install strong-params --save

```js
var express = require('express')
var params = require('strong-params')
var params = require('strong-parameter')
app.use(params.expressMiddleware())
```

##### Koa

```js
var koa = require('koa')
var params = require('strong-params')
var params = require('strong-parameter')
var app = new koa()
app.use(params.koaMiddleware())
```
Expand Down Expand Up @@ -58,7 +58,7 @@ app.use(function (ctx, next) {
##### Standalone

```js
var Parameters = require('strong-params').Parameters
var Parameters = require('strong-parameter').Parameters
var params = Parameters({
id: '13',
name: 'Bob',
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "strong-params",
"version": "1.0.5",
"name": "strong-parameter",
"version": "1.1.0",
"description": "Rails-style strong parameters for javascript projects. (e.g. Express, Koa)",
"main": "index.js",
"scripts": {
"test": "standard && mocha --recursive ./spec"
},
"repository": {
"type": "git",
"url": "git://github.com/ssowonny/strong-params.git"
"url": "git://github.com/BunHouth/strong-params.git"
},
"keywords": [
"koa",
Expand All @@ -35,16 +35,16 @@
"body",
"strong"
],
"author": "ssowonny",
"author": "BunHouth",
"contributors": [
"simonratner",
"vellotis"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/ssowonny/strong-params/issues"
"url": "https://github.com/BunHouth/strong-params/issues"
},
"homepage": "https://github.com/ssowonny/strong-params",
"homepage": "https://github.com/BunHouth/strong-params",
"devDependencies": {
"body-parser": "^1.17.2",
"express": "^4.15.3",
Expand Down

0 comments on commit b5199d6

Please sign in to comment.