You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pg-minify

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-minify - npm Package Compare versions

Comparing version

to
0.4.0

typescript/pg-minify.d.ts

3

package.json
{
"name": "pg-minify",
"version": "0.3.5",
"version": "0.4.0",
"description": "Minifies PostgreSQL scripts.",
"main": "lib/index.js",
"typings": "typescript/pg-minify.d.ts",
"scripts": {

@@ -7,0 +8,0 @@ "test": "jasmine-node test",

## TypeScript for pg-minify
Complete TypeScript declarations for [pg-minify].
Complete TypeScript 2.0 declarations for the [pg-minify] module.
### Inclusion
You can use it either directly or via [typings].
* directly:
Typescript should be able to pick up the definitions without any manual configuration.
### Usage
```ts
/// <reference path='../node_modules/pg-minify/typescript/index.d.ts' />
```
import * as minify from "pg-minify";
* via [typings]:
var sql = "SELECT 1; -- comments";
minify(sql); //=> SELECT 1;
```
$ typings install --save --global github:vitaly-t/pg-minify
```
then you can also use a generic reference:
```ts
/// <reference path='../typings/index' />
```
[pg-minify]:https://github.com/vitaly-t/pg-minify
[typings]:https://github.com/typings/typings