New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lamnhan/schemata

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lamnhan/schemata

Commonly used data models.

latest
Source
npmnpm
Version
0.0.24
Version published
Maintainers
1
Created
Source

Schemata

Commonly used data models.

License Support me on Patreon PayPal Ask me anything

Install & usage

  • Interface package:
npm i @lamnhan/schemata

Use the interface:

import { Post } from '@lamnhan/schemata';

const posts: Post[] = [];
const recordPosts: Record<string, Post> = {};
const post: Post = {
  id: '...',
  title: '...',
};
  • Angular utilities:
npm i @lamnhan/ngx-schemata

Use services:

import { PostDataService } from '@lamnhan/ngx-schemata';

class Foo {
  public readonly posts$ = this.postDataService.list();
  public readonly post$ = this.postDataService.get('foo');
}

Use pipes:

// listing pipe
import { PostsDataPipeModule } from '@lamnhan/ngx-schemata';
// getting pipe
import { PostDataPipeModule } from '@lamnhan/ngx-schemata';
<!-- listing -->
<div *ngIf="10 | posts | async; let items">
  <ul *ngIf="items.length">
    <li *ngFor="let item of items">{{ item.title }}</li>
  </ul>
</div>

<!-- getting -->
<div *ngIf="'foo' | post | async; let item">
  <h1>{{ item.title }}</h1>
</div>

Models

:blue_heart: Category categories :earth_asia:

Source

:blue_heart: Tag tags :earth_asia:

Source

:blue_heart: Page pages :earth_asia:

Source

:blue_heart: Post posts :earth_asia:

Source

:blue_heart: Author authors :earth_asia:

Source

:blue_heart: Thread threads :earth_asia:

Source

:blue_heart: User users :x:

Source

:blue_heart: Option options :earth_asia:

Source

:green_heart: Bundle bundles :earth_asia:

Source

:green_heart: Audio audios :earth_asia:

Source

:green_heart: Video videos :earth_asia:

Source

:green_heart: Product products :earth_asia:

Source

:heart: Order orders :x:

Source

:purple_heart: Notification notifications :earth_asia:

Source

:purple_heart: Promotion promotions :earth_asia:

Source

License

@lamnhan/schemata is released under the MIT license.

Keywords

data

FAQs

Package last updated on 11 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts