Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repaired functionality #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- "lts/*"
- node
- "0.12"
- "0.10"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Daniel St. Jules
Copyright (c) 2014-2023 Daniel St. Jules

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![pjs](http://danielstjules.com/github/pjs-logo.png)
![pjs](https://raw.githubusercontent.com/danielstjules/pjs/master/pjs-logo.png)

Pipeable JavaScript - another utility like sed/awk/wc... but with JS! Quickly
filter, map and reduce from the command line. Features a streaming API.
Expand Down
4 changes: 2 additions & 2 deletions lib/pjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ exports.json = function(streamArray) {
*/
function getStringifyStream() {
stringify = new Stringify();
stringify.seperator = new Buffer(',\n', 'utf8');
stringify.seperator = Buffer.from(',\n', 'utf8');

// Overwrite default _transform to convert _nullObject
stringify._transform = function(doc, enc, fn) {
Expand All @@ -243,7 +243,7 @@ function getStringifyStream() {
return fn(err);
}

this.push(new Buffer(doc, 'utf8'));
this.push(Buffer.from(doc, 'utf8'));
fn();
};

Expand Down
Loading