Socket
Socket
Sign inDemoInstall

awk

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 1.0.0

examples/data.txt

7

package.json
{
"name": "awk",
"version": "0.0.1",
"version": "1.0.0",
"description": "a wrapper of webAwk, wak in javascript",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {

@@ -16,3 +13,3 @@ "type": "git",

],
"author": "turing",
"author": "turing <o.u.turing@gmail.com>",
"license": "MIT",

@@ -19,0 +16,0 @@ "bugs": {

## awk ![npm](https://badge.fury.io/js/awk.png)
a wrapper of a wrapper of [WebAwk](https://github.com/agordon/webawk), awk in javascript
a wrapper of [WebAwk](https://github.com/agordon/webawk), awk in javascript

@@ -13,5 +13,7 @@ ### Installation

var awk = require('awk'),
fs = require('fs');
fs = require('fs'),
awkscript = fs.readFileSync( __dirname + '/demo.awk'),
data = fs.readFileSync( __dirname + '/data.txt');
var result = awk(fs.readFileSync( __dirname + '/demo.awk'),fs.readFileSync( __dirname + '/data.txt'));
var result = awk(awkscript, data);

@@ -18,0 +20,0 @@ console.log(result.exit_code);

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc