This package contains utility functions that can be used in any TypeScript project. The functions are designed to be used in a variety of projects and can be used to simplify common tasks.
Install the package as a dev dependency in your project.
# With yarn
yarn install -D @soufit/utility
# With NPM
npm install --save-dev @soufit/utility
After installing the package, you can use the configuration in your Prettier configuration file. You can specify the prefix in the import statement to use a specific configuration.
import { classNames } from '@soufit/utility/utils';
export default function Navbar(): JSX.Element {
return (
<div className={classNames('text-2xl', isOpen ? 'show' : 'hidden')}>
<h1>Hallo!</h1>
</div>
);
}
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.