Manifest.json Package.json

633 views
Skip to first unread message

Kris Kowal

unread,
Feb 17, 2012, 8:28:04 PM2/17/12
to Chromium-extensions, comm...@googlegroups.com

There is a lot of overlap between Chrome Application Manifests and
CommonJS and NPM package descriptions. This might be intent or
convergent evolution—I don’t know.

http://code.google.com/chrome/extensions/manifest.html

http://npmjs.org/doc/json.html

http://wiki.commonjs.org/wiki/Packages/1.0

The only major divergence is "name", which precludes consolidating the
two files in most cases.

For a manifest, the "name" is a title like "My Application", whereas
in package.json, "name" is name suitable for identification in a
package registry, like "my-application".

I am recommending that CommonJS / NPM reserve "title" for the purpose
of a name, suitable for placement in a window title, like "My
Application".

https://github.com/kriskowal/uncommonjs/blob/master/packages/specification.md

In a future version, Chrome could check for the existence of a "title"
property and ignore "name" if one is present. That would open the
possibility of consolidating these files in certain applications.

Kris Kowal

Mike West

unread,
Feb 18, 2012, 6:52:53 AM2/18/12
to Chromium-extensions, Kris Kowal, comm...@googlegroups.com
Hi Kris, it's an interesting idea that we should think about.

Can you file a ticket at http://new.crbug.com/ and post the ID here?

-Mike

On Feb 18, 2:28 am, Kris Kowal <cowber...@gmail.com> wrote:
> There is a lot of overlap between Chrome Application Manifests and
> CommonJS and NPM package descriptions.  This might be intent or
> convergent evolution—I don’t know.
>
> http://code.google.com/chrome/extensions/manifest.html
>
> http://npmjs.org/doc/json.html
>
> http://wiki.commonjs.org/wiki/Packages/1.0
>
> The only major divergence is "name", which precludes consolidating the
> two files in most cases.
>
> For a manifest, the "name" is a title like "My Application", whereas
> in package.json, "name" is name suitable for identification in a
> package registry, like "my-application".
>
> I am recommending that CommonJS / NPM reserve "title" for the purpose
> of a name, suitable for placement in a window title, like "My
> Application".
>
> https://github.com/kriskowal/uncommonjs/blob/master/packages/specific...

Mike West

unread,
Feb 20, 2012, 4:38:14 AM2/20/12
to Kris Kowal, Chromium-extensions, comm...@googlegroups.com
Thanks Kris, I've put it into the extension team's queue.

-Mike

On Sun, Feb 19, 2012 at 11:36 PM, Kris Kowal <cowber...@gmail.com> wrote:


> On Sat, Feb 18, 2012 at 3:52 AM, Mike West <mk...@chromium.org> wrote:
>> Can you file a ticket at http://new.crbug.com/ and post the ID here?
>

> Thanks. Submitted 114954
>
> http://code.google.com/p/chromium/issues/detail?id=114954
>
> Mozilla appears to be tracking the format as well. I’m not sure who to
> bother about that.
>
> https://developer.mozilla.org/en/Apps/Manifest
>
> Kris Kowal

Kris Kowal

unread,
Feb 19, 2012, 5:36:27 PM2/19/12
to Mike West, Chromium-extensions, comm...@googlegroups.com
On Sat, Feb 18, 2012 at 3:52 AM, Mike West <mk...@chromium.org> wrote:
> Can you file a ticket at http://new.crbug.com/ and post the ID here?

Thanks. Submitted 114954

Mihai Parparita

unread,
Feb 21, 2012, 9:06:57 PM2/21/12
to Kris Kowal, Mike West, Chromium-extensions, comm...@googlegroups.com
On Sun, Feb 19, 2012 at 2:36 PM, Kris Kowal <cowber...@gmail.com> wrote:
Mozilla appears to be tracking the format as well. I’m not sure who to
bother about that.

https://developer.mozilla.org/en/Apps/Manifest

Note that they have a comparison with Chrome's manifest: https://wiki.mozilla.org/Apps/ManfiestFormatComparison

Mihai
Reply all
Reply to author
Forward
0 new messages