Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "dpath", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Sugar for myString.split('.'); Use: dp('a.b.c'); // => ['a','b','c']", | ||
"main": "index.js", | ||
"main": "source/index.js", | ||
"scripts": { | ||
"test": "echo \"No tests, sorry.\"" | ||
"lint": "eslint . && echo 'Lint finished...\n'", | ||
"pretest": "npm run -s lint", | ||
"test": "node source/test/index.js", | ||
"watch": "watch 'clear && npm run -s test' source", | ||
"update": "updtr" | ||
}, | ||
@@ -23,3 +27,12 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/ericelliott/dpath" | ||
"homepage": "https://github.com/ericelliott/dpath", | ||
"devDependencies": { | ||
"babel-core": "^6.14.0", | ||
"babel-preset-node6": "^11.0.0", | ||
"eslint": "^3.6.1", | ||
"immutable": "^3.8.1", | ||
"tape": "^4.6.0", | ||
"updtr": "^0.2.1", | ||
"watch": "^0.19.2" | ||
} | ||
} |
@@ -15,3 +15,6 @@ # Dot Path | ||
import dp from 'dpath'; | ||
arrPath = dp('a.b.c'); // => ['a','b','c'] | ||
const arrPath = dp('a.b.c'); // => ['a','b','c'] | ||
// optionally specify a delimiter: | ||
const arr2 = dp('a,b,c', ','); // => ['a','b','c'] | ||
``` | ||
@@ -26,3 +29,3 @@ | ||
let map = I.Map().setIn(dp('a.b.c'), 'val'); | ||
map.toJS(); // => {a:{b:{c:'X'}}} | ||
map.toJS(); // => {a:{b:{c:'val'}}} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
9426
10
48
0
30
7