1.0.23 • Published 8 months ago

nv-jsparser-helper v1.0.23

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

nv-jsparser-helper

  • simple wrap of @babel/parser
  • expose more apis for copy/paste AND using in another project

DFLT OPTS

    const defaultOptions = {
      sourceType: "module",
      sourceFilename: undefined,
      startLine: 1,
      allowAwaitOutsideFunction: true,
      allowReturnOutsideFunction: true,
      allowImportExportEverywhere: true,
      allowSuperOutsideMethod: true,
      allowUndeclaredExports: true,
      allowLineBreakAfterAsync:true,   //-
      plugins: [
          'typescript','v8intrinsic','placeholders','decorators-legacy',
          "classProperties",'classPrivateProperties',
          'classPrivateMethods','decimal','partialApplication',
          ['recordAndTuple',{syntaxType:'hash'}],
          'topLevelAwait',
          'awaitInNonAsync', //-
      ],
      strictMode: null,
      ranges: false,
      tokens: true,
      createParenthesizedExpressions: false,
      errorRecovery: false,
      max_size:1000000
    };

   ### placeholders
       ¥ 

   ### allowLineBreakAfterAsync:true
       
       async 
          function A(){}
       
       ----for  error tolerance 

   ### awaitInNonAsync 
       for support await/for-await-of  in function-without-async
       normally USELESS, just one special js-runtime need this
1.0.19

8 months ago

1.0.21

8 months ago

1.0.23

8 months ago

1.0.18

9 months ago

1.0.15

9 months ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago