Skip to content

Commit

Permalink
refactor: move files to std locations
Browse files Browse the repository at this point in the history
  • Loading branch information
dbushong committed Oct 18, 2019
1 parent 6227d46 commit 3bfb412
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, Groupon, Inc.
Copyright (c) 2019, Groupon, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm install --save host-pattern
### `expand`

```js
var hostPattern = require('host-pattern');
const hostPattern = require('host-pattern');

// Lists (comma-separated):
hostPattern.expand('example.net,www.host.com');
Expand All @@ -33,7 +33,7 @@ hostPattern.expand('my-host<1,3-5>.example.com');
### `abbreviate`

```js
var hostPattern = require('host-pattern');
const hostPattern = require('host-pattern');

// Lists (comma-separated):
hostPattern.abbreviate([ 'example.net', 'www.host.com' ]);
Expand Down
32 changes: 32 additions & 0 deletions index.js → lib/host-pattern.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (c) 2019, Groupon, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of GROUPON nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

'use strict';

function byNumeric(a, b) {
Expand Down
File renamed without changes.
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.1.1",
"description": "Summarize and expand host patterns",
"license": "BSD-3-Clause",
"main": "index.js",
"main": "lib/host-pattern.js",
"homepage": "https://github.com/groupon/host-pattern#readme",
"repository": {
"type": "git",
Expand Down Expand Up @@ -32,7 +32,7 @@
]
}
},
"types": "typedefs.d.ts",
"types": "lib/typedefs.d.ts",
"dependencies": {},
"devDependencies": {
"assertive": "^2.0.2",
Expand All @@ -53,21 +53,20 @@
"name": "Groupon",
"email": "opensource@groupon.com"
},
"contributors": [
"Jan Krems <jan.krems@gmail.com>",
"David Bushong <dbushong@groupon.com>"
],
"keywords": [
"host",
"pattern",
"glob"
],
"files": [
"index.js",
"typedefs.d.ts"
"*.js",
"lib"
],
"publishConfig": {
"registry": "https://registry.npmjs.org",
"license": {
"exclude": [
"."
]
}
"registry": "https://registry.npmjs.org"
}
}

0 comments on commit 3bfb412

Please sign in to comment.