Skip to content

Commit a82f473

Browse files
fix: renamed to json-transforms
1 parent 8e6bef7 commit a82f473

8 files changed

+16
-16
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ after_success:
1515
- npm run semantic-release
1616
branches:
1717
except:
18-
- "/^v\\d+\\.\\d+\\.\\d+$/"
18+
- /^v\d+\.\d+\.\d+$/

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## JSON Transformer
1+
## JSON Transform
22

33
A recursive, pattern-matching, approach to transforming JSON structures.
44

@@ -36,13 +36,13 @@ removed:
3636
Install via npm:
3737

3838
```
39-
npm install json-transformer --save
39+
npm install json-transforms --save
4040
```
4141

4242
The following code demonstrates how to perform the transformation described above:
4343

4444
```
45-
const jsont = require('./build/json-transformer');
45+
const jsont = require('json-transforms');
4646
4747
const json = {...};
4848
@@ -66,19 +66,19 @@ const transformed = jsont.transform(json, rules);
6666

6767
### Browser
6868

69-
The json-transformer is exposed as a global variable `jsont`. The project also depends on [JSPath](https://github.com/dfilatov/jspath), so both must be included in order to run the above example:
69+
The json-transforms is exposed as a global variable `jsont`. The project also depends on [JSPath](https://github.com/dfilatov/jspath), so both must be included in order to run the above example:
7070

7171
```
7272
<script src="https://npmcdn.com/jspath/lib/jspath.js"></script>
73-
<script src="https://npmcdn.com/json-transformer/build/json-transformer.js"></script>
73+
<script src="https://npmcdn.com/json-transforms/build/json-transforms.js"></script>
7474
```
7575

7676
With these scripts loaded, the above example will also run in the browser.
7777

7878

7979
### Modern JavaScript
8080

81-
The examples on this documentation all use 'modern' JavaScript syntax (arrow functions, constants, etc ...), however, the npm module is transpiled to ES2015, so if you are in a browser environment that lacks ES2016 support, json-transformer will still work just fine:
81+
The examples on this documentation all use 'modern' JavaScript syntax (arrow functions, constants, etc ...), however, the npm module is transpiled to ES2015, so if you are in a browser environment that lacks ES2016 support, json-transforms will still work just fine:
8282

8383
```
8484
var rules = [

Diff for: package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "json-transformer",
2+
"name": "json-transforms",
33
"description": "A recursive, pattern-matching, approach to transforming JSON structures.",
44
"main": "index.js",
55
"dependencies": {
66
"jspath": "^0.3.3"
77
},
8-
"homepage": "https://github.com/ColinEberhardt/json-transformer",
8+
"homepage": "https://github.com/ColinEberhardt/json-transforms",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/ColinEberhardt/json-transformer"
11+
"url": "https://github.com/ColinEberhardt/json-transforms"
1212
},
1313
"devDependencies": {
1414
"babel-preset-es2015-rollup": "^1.1.1",
@@ -29,5 +29,5 @@
2929
},
3030
"author": "",
3131
"license": "MIT",
32-
"version": "1.0.0"
32+
"version": "1.1.0"
3333
}

Diff for: rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
moduleName: 'jsont',
66
format: 'umd',
77
plugins: [ babel() ],
8-
dest: 'build/json-transformer.js',
8+
dest: 'build/json-transforms.js',
99
globals: {
1010
jspath: 'JSPath'
1111
}

Diff for: test/identitySpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const transformer = require('./../build/json-transformer');
1+
const transformer = require('./../build/json-transforms');
22
const identity = transformer.identity;
33

44
describe('Identity rule', () => {

Diff for: test/pathRuleSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const transformer = require('./../build/json-transformer');
1+
const transformer = require('./../build/json-transforms');
22
const pathRule = transformer.pathRule;
33

44
describe('pathRule', () => {

Diff for: test/scenarioTestSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const transformer = require('./../build/json-transformer');
1+
const transformer = require('./../build/json-transforms');
22
const identity = transformer.identity;
33
const pathRule = transformer.pathRule;
44
const transform = transformer.transform;

Diff for: test/transformSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const transformer = require('./../build/json-transformer');
1+
const transformer = require('./../build/json-transforms');
22
const identity = transformer.identity;
33
const transform = transformer.transform;
44

0 commit comments

Comments
 (0)