0.7.1 • Published 5 months ago
plutonio v0.7.1
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.7.1
5 months ago
0.6.5
7 months ago
0.7.0
5 months ago
0.6.3
10 months ago
0.6.4
10 months ago
0.6.2
1 year ago
0.6.1
1 year ago
0.6.0
1 year ago
0.5.2
1 year ago
0.5.0
2 years ago
0.5.1
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.2.2
2 years ago
0.1.0
2 years ago
1.1.1
2 years ago
1.0.2
2 years ago
0.0.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.0
3 years ago