@aegenet/belt-json-ignore
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

npm version

@aegenet/belt-json-ignore

@jsonIgnore decorator

💾 Installation

yarn add @aegenet/belt-json-ignore@^1.4.0
# or
npm i @aegenet/belt-json-ignore@^1.4.0

📝 Usage

import { jsonIgnore } from '@aegenet/belt-json-ignore';

class MyClass {
  @jsonIgnore
  public mySubPrivateField: string = 'abcdefg';
  public something: string = 'ok';
}

const instance = new MyClass();
JSON.stringify(instance); // '{"something":"ok"}'

Readme

Keywords

Package Sidebar

Install

npm i @aegenet/belt-json-ignore

Weekly Downloads

0

Version

1.5.0

License

MIT

Unpacked Size

3.71 kB

Total Files

7

Last publish

Collaborators

  • agenet