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

4.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';
import { describe, expect, test } from 'vitest';

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',
    );
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i @ssen/flat-package-name

Weekly Downloads

6

Version

4.0.0

License

MIT

Unpacked Size

3.41 kB

Total Files

5

Last publish

Collaborators

  • ssen