1.0.4 • Published 7 years ago

path-ify v1.0.4

Weekly downloads
9
License
ISC
Repository
github
Last release
7 years ago

Forms a object composed of the path from the given object.

  it('2.1 to be ', function() {
    (pathify.toPath({b: {a: 1, c: 2}})).should.deepEqual({
      'b.a': 1,
      'b.c': 2
    });
  });

  it('2.2 to be ', function() {
    (pathify.toPath({b: {a: 1, c: 2}, d: {a: {j: [0, 1, 2]}}})).should.deepEqual({
      'b.a': 1,
      'b.c': 2,
      'd.a.j': [0, 1, 2]
    });
  });
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago