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

json2typescript

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2typescript

Provides TypeScript methods to map a JSON string to a JavaScript object on runtime

  • 0.9.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35K
decreased by-2.06%
Maintainers
1
Weekly downloads
 
Created
Source

json2typescript

json2typescript is a small package containing a helper class that maps json objects to an instance of a TypeScript class. The idea is that we only need a simple function call in order to fill a json string into nested objects in TypeScript.


Dependencies

We developed json2typescript for Angular2. In this document, we only cover this use case. However, you may use our package for pure TypeScript or even JavaScript applications.


Setup a Test Application

We recommend to use the official angular-cli tool in order to set up a new Angular project. Then, all you need to do is type the following into your operating system's terminal:

ng new testApplication
cd testApplication
npm install json2typescript

Now you are ready to use the package.


[ WILL BE EXPANDED SOON ]

Keywords

FAQs

Package last updated on 06 Oct 2016

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

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