Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dpath

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dpath - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

.babelrc

21

package.json
{
"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"
}
}

7

README.md

@@ -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'}}}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc