@blocz/detect-imports
Advanced tools
Comparing version 0.1.0-beta.3 to 0.1.0
{ | ||
"name": "@blocz/detect-imports", | ||
"version": "0.1.0-beta.3", | ||
"version": "0.1.0", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "main": "lib/detect-imports.js", |
# TL;DR | ||
The goal of this library is to detect, in a JS code, the import statements, and parse them. | ||
This is supposed to be used with MDX 1, so TypeScript is not supposed to be parsed (so syntaxes like `import type` or `import { type A }` won't be supported). | ||
## How to use: | ||
### Signature | ||
```ts | ||
detectImports(code: string): Promise<ImportDeclaration[]> | ||
``` | ||
### Example | ||
```js | ||
@@ -4,0 +18,0 @@ import { detectImports } from "@blocz/detect-imports"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12223
59