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

props-transform

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

props-transform

Transforms properties of an object by given transform functions.

1.0.1
latest
Source
npm
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

props-transform Build Status

Transforms properties of an object by given transform functions.

Usage

import createTransform from 'props-transform';

const transform = createTransform()
    .add('count', (value) => parseInt(value, 10))
    .add('title', (value) => value.toUpperCase());

const obj = {
    count: '10';
    title: 'my title'
};

transform(obj);
// => { count: 10, title: 'MY TITLE' }

Installation

npm install --save props-transform

License

MIT

Keywords

object

FAQs

Package last updated on 13 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts