Skip to content

Commit

Permalink
drop dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored and timoxley committed Aug 6, 2020
1 parent 2eea6d3 commit 779816e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 7 additions & 2 deletions index.js
@@ -1,9 +1,14 @@
var isBuffer = require('is-buffer')

module.exports = flatten
flatten.flatten = flatten
flatten.unflatten = unflatten

function isBuffer (obj) {
return obj &&
obj.constructor &&
(typeof obj.constructor.isBuffer === 'function') &&
obj.constructor.isBuffer(obj);
}

function keyIdentity (key) {
return key
}
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -15,9 +15,7 @@
"directories": {
"test": "test"
},
"dependencies": {
"is-buffer": "~2.0.4"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/hughsk/flat.git"
Expand Down

0 comments on commit 779816e

Please sign in to comment.