New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

append-to-all-attributes

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

append-to-all-attributes - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "append-to-all-attributes",
"version": "1.0.0",
"version": "1.0.1",
"description": "Append a string to all attributes in the object passed",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,1 +10,27 @@ # append-to-all-attributes

```
## Usage
```js
const appendToAllAttributes = require('append-to-all-attributes);
appendToAllAttributes({
sanFrancisco_to_newYork: 50,
madrid_to_barcelona: 5,
withChilds: {
onlyOneLevel: "It will not apply to inner attributes"
}
}, "__by_car");
//=>
{
sanFrancisco_to_newYork__by_car: 50,
madrid_to_barcelona__by_car: 5,
withChilds__by_car: {
onlyOneLevel: "It will not apply to inner attributes"
}
}
```
## License
MIT © [Fabio Espinosa](http://fabioespinosa.mit.edu)
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