1.1.1 • Published 5 years ago

ts-transform-json v1.1.1

Weekly downloads
35
License
MIT
Repository
github
Last release
5 years ago

ts-transform-json

build status

Inline specific values from a JSON file or the whole JSON blob. For example:

import {version} from 'package.json'
// becomes
var version = '1.0.5'

// OR
import * as packageJson from 'package.json'
// becomes
var packageJson = {"version": "1.0.5", dependencies: {}}

Usage

First of all, you need some level of familiarity with the TypeScript Compiler API.

compile.ts & tests should have examples of how this works. The available options are:

isDeclaration?: boolean

Whether you're running this transformer in declaration files (typically specified in afterDeclarations instead of after in transformer list). This flag will inline types instead of actual value.

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago