Comparing version 0.3.5 to 0.4.0
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13277
283