Nothing Particularly Magnificent

    @locker/is-module
    TypeScript icon, indicating that this package has built-in type declarations

    0.16.30 • Public • Published

    @locker/is-module

    Check if code looks like an ECMAScript module

    Installation

    $ yarn add @locker/is-module

    Usage

    import isModule from '@locker/is-module';
    
    isModule(`
      import 'mod'
    `); // => true
    
    isModule(`
      import('mod')
    `); // => false

    Keywords

    none

    Install

    npm i @locker/is-module

    DownloadsWeekly Downloads

    131

    Version

    0.16.30

    License

    Salesforce Developer Agreement

    Unpacked Size

    225 kB

    Total Files

    7

    Last publish

    Collaborators

    • achabot
    • garychangsf
    • mjasso
    • caridy
    • jdalton
    • t.lau
    • dejang
    • rwaldron