Socket
Socket
Sign inDemoInstall

ascjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascjs - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "ascjs",
"version": "0.1.1",
"version": "0.1.2",
"description": "ES2015 to CommonJS import/export transformer",

@@ -5,0 +5,0 @@ "bin": "bin.js",

@@ -12,2 +12,39 @@ # ascjs

## How to
You can use _ascjs_ as binary utility or as module.
```sh
npm install -g ascjs
# to see what you can do
ascjs --help
```
As executable, you can use _ascjs_ to output, or save, some code content.
```sh
ascjs code
ascjs sourceFile
ascjs sourceFile destFile
# folders are recursively parsed
# destFolder is mandatory
ascjs sourceFolder destFolder
```
You can also use it via pipe operator.
```sh
echo code | ascjs
cat source.js | ascjs | uglifyjs -o dest.js
```
As module, you can require it and use it to convert ESM to CJS.
```js
const ascjs = require('ascjs');
ascjs('import "test";');
// require("test");
```
### Features

@@ -14,0 +51,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc