0.6.2 • Published 4 months ago
plutonio v0.6.2
Plutonio
Plutonio is a Typescript library that scans your typescript project and generate a schema of all types and interfaces of the project.
The schema is the following:
type Schema = {
name: string;
category: Category;
type: Primitive;
original?: string;
enum?: string[];
imports: Import[];
properties?: {
[k:string]: Schema
}
};
type Category = 'type' | 'interface';
type Primitive =
| 'any';
| 'boolean'
| 'null'
| 'number'
| 'object'
| 'string'
| 'undefined'
An example of a schema is the following:
const schema = {
name: 'Product',
category: 'interface',
type: 'object',
original: 'export interface Product extends Foo.Boo {title: string, price: number}',
properties: {
title: {
type: 'string',
},
price: {
type: 'number',
},
},
imports: [
{
text: 'import Foo from "foo"',
module: 'foo',
clause: 'Foo',
specifiers: [],
},
],
},
};
0.6.2
4 months ago
0.6.1
4 months ago
0.6.0
4 months ago
0.5.2
4 months ago
0.5.0
5 months ago
0.5.1
5 months ago
0.3.0
5 months ago
0.2.1
5 months ago
0.2.0
5 months ago
0.1.1
5 months ago
0.4.1
5 months ago
0.4.0
5 months ago
0.2.2
5 months ago
0.1.0
6 months ago
1.1.1
7 months ago
1.0.2
7 months ago
0.0.1
7 months ago
1.1.0
7 months ago
1.0.1
7 months ago
1.0.4
7 months ago
1.0.3
7 months ago
1.0.0
1 year ago