@ssen/flat-package-name
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    @ssen/flat-package-name

    Flat package name rule.

    Test Codes

    __tests__/flatPackageName.test.ts

    import { flatPackageName } from '@ssen/flat-package-name';
    
    describe('flatPackageName()', () => {
      test('should flat package names', () => {
        expect(flatPackageName('eslint')).toBe('eslint');
        expect(flatPackageName('markdown-source-import')).toBe(
          'markdown-source-import',
        );
        expect(flatPackageName('@ssen/eslint-config')).toBe('ssen__eslint-config');
        expect(flatPackageName('@ssen/prettier-config')).toBe(
          'ssen__prettier-config',
        );
      });
    });

    Keywords

    none

    Install

    npm i @ssen/flat-package-name

    DownloadsWeekly Downloads

    63

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.36 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar