parse-static-imports
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -23,7 +23,7 @@ "use strict"; | ||
/** parseStaticImports | ||
* The parseStaticImports() method returns a a list of objects whose properties | ||
* represent significant elements of the static import. | ||
* returns a a list of objects whose properties represent significant elements | ||
* of the static import. | ||
* | ||
* @param {String} file - Contents of a file containing static imports | ||
* @returns {Object[]} - List of static imports found in the given file contents | ||
* @returns {Object[]} List of static imports found in the given file contents | ||
*/ | ||
@@ -30,0 +30,0 @@ function parseStaticImports(file = "") { |
{ | ||
"name": "parse-static-imports", | ||
"description": "Gracefully parse ECMAScript static imports 💃", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Cody A Price <dev.cprice@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -59,7 +59,8 @@ # parse-static-imports | ||
Named import objects have the form: | ||
| Attribute | Default Value | Description | | ||
| --------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| name | N/A | The name of the named import (e.g. `{ useState }`) | | ||
| alias | name | Will be the alias of a named import if aliased, otherwise defaults to the named import (e.g. `import { foo /* the named import */ as bar /* the alias */ } from "module-name";`) | | ||
| Attribute | Type | Default Value | Description | | ||
| --- | --- | --- | --- | | ||
| name | `String` | N/A | The name of the named import (e.g. `{ useState }`) | | ||
| alias | `String` | name | Will be the alias of a named import if aliased, otherwise defaults to the named import (e.g. `import { foo /* the named import */ as bar /* the alias */ } from "module-name";`) | | ||
## Example | ||
@@ -66,0 +67,0 @@ |
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
199
13886