sbx-utils-lib
TypeScript icon, indicating that this package has built-in type declarations

2.2.8 • Public • Published

Getting Started

First, run the development server:

npm install sbx-utils-lib 
# or
yarn add sbx-utils-lib 

if the extended-types.d.ts file is not copied to the root of your project, you can copy it manually from the node_modules/sbx-utils-lib/lib/extended-types.d.ts to the root of your project.

Example import to init properties

import sbxInit from 'sbx-utils-lib/lib/properties';

//Call here
sbxInit();

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
    <React.StrictMode>
        <App />
    </React.StrictMode>
);

Some examples extended types

String.toDate(); // return Date

String.capitalize(); // return string with first letter capitalized
 
Date.toFormattedDate("yyyy-MM-dd"); // return string use date-fns

Array.toMap(String); // return Map<string, any>
 

Readme

Keywords

none

Package Sidebar

Install

npm i sbx-utils-lib

Weekly Downloads

71

Version

2.2.8

License

ISC

Unpacked Size

107 kB

Total Files

20

Last publish

Collaborators

  • sbxfrank